mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 11:34:00 +03:00
d9a7d70899
* Bump python in /{{cookiecutter.project_slug}}/compose/production/django Bumps python from 3.11.6-slim-bullseye to 3.11.7-slim-bullseye. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump python in /{{cookiecutter.project_slug}}/compose/local/django Bumps python from 3.11.6-slim-bullseye to 3.11.7-slim-bullseye. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump python in /{{cookiecutter.project_slug}}/compose/local/docs Bumps python from 3.11.6-slim-bullseye to 3.11.7-slim-bullseye. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update Heroku runtime to 3.11.7 * Pin pre-commit Python version to 3.11 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
exclude: '^docs/|/migrations/|devcontainer.json'
|
|
default_stages: [commit]
|
|
|
|
default_language_version:
|
|
python: python3.11
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- id: check-builtin-literals
|
|
- id: check-case-conflict
|
|
- id: check-docstring-first
|
|
- id: detect-private-key
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v3.1.0
|
|
hooks:
|
|
- id: prettier
|
|
args: ['--tab-width', '2', '--single-quote']
|
|
exclude: '{{cookiecutter.project_slug}}/templates/'
|
|
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
|
rev: '1.15.0'
|
|
hooks:
|
|
- id: django-upgrade
|
|
args: ['--target-version', '4.2']
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.15.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py311-plus]
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.11.0
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 6.1.0
|
|
hooks:
|
|
- id: flake8
|
|
|
|
- repo: https://github.com/Riverside-Healthcare/djLint
|
|
rev: v1.34.0
|
|
hooks:
|
|
- id: djlint-reformat-django
|
|
- id: djlint-django
|
|
|
|
# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date
|
|
ci:
|
|
autoupdate_schedule: weekly
|
|
skip: []
|
|
submodules: false
|