2023-04-15 14:15:15 +03:00
|
|
|
exclude: '^docs/|/migrations/'
|
2019-10-29 17:47:27 +03:00
|
|
|
default_stages: [commit]
|
|
|
|
|
|
|
|
repos:
|
2020-05-01 21:10:42 +03:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-08 05:24:07 +03:00
|
|
|
rev: v4.5.0
|
2019-10-29 17:47:27 +03:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
2020-05-01 21:10:42 +03:00
|
|
|
- id: end-of-file-fixer
|
2023-04-15 14:15:15 +03:00
|
|
|
- id: check-json
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-xml
|
2020-05-01 21:10:42 +03:00
|
|
|
- id: check-yaml
|
2023-04-15 14:15:15 +03:00
|
|
|
- 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
|
2023-08-31 21:02:24 +03:00
|
|
|
rev: v3.0.3
|
2023-04-15 14:15:15 +03:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
args: ['--tab-width', '2', '--single-quote']
|
2023-04-16 14:59:01 +03:00
|
|
|
exclude: '{{cookiecutter.project_slug}}/templates/'
|
2019-10-29 17:47:27 +03:00
|
|
|
|
2023-04-28 10:56:22 +03:00
|
|
|
- repo: https://github.com/adamchainz/django-upgrade
|
2023-09-25 21:02:15 +03:00
|
|
|
rev: '1.15.0'
|
2023-04-28 10:56:22 +03:00
|
|
|
hooks:
|
|
|
|
- id: django-upgrade
|
2023-06-28 09:38:04 +03:00
|
|
|
args: ['--target-version', '4.2']
|
2023-04-28 10:56:22 +03:00
|
|
|
|
2022-05-07 21:21:15 +03:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2023-10-08 05:24:07 +03:00
|
|
|
rev: v3.15.0
|
2022-05-07 21:21:15 +03:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2023-04-15 13:42:33 +03:00
|
|
|
args: [--py311-plus]
|
2022-05-07 21:21:15 +03:00
|
|
|
|
2020-05-01 21:10:42 +03:00
|
|
|
- repo: https://github.com/psf/black
|
2023-10-18 00:31:10 +03:00
|
|
|
rev: 23.10.0
|
2020-05-01 21:10:42 +03:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
2021-11-20 03:13:01 +03:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2023-01-28 20:47:29 +03:00
|
|
|
rev: 5.12.0
|
2020-08-04 18:06:37 +03:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
|
2021-11-20 03:13:01 +03:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2023-08-02 01:02:31 +03:00
|
|
|
rev: 6.1.0
|
2019-10-29 17:47:27 +03:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2021-06-02 10:47:37 +03:00
|
|
|
|
2023-06-28 00:52:36 +03:00
|
|
|
- repo: https://github.com/Riverside-Healthcare/djLint
|
2023-09-21 15:09:46 +03:00
|
|
|
rev: v1.34.0
|
2023-06-28 00:52:36 +03:00
|
|
|
hooks:
|
|
|
|
- id: djlint-reformat-django
|
|
|
|
- id: djlint-django
|
|
|
|
|
2021-06-02 10:47:37 +03:00
|
|
|
# sets up .pre-commit-ci.yaml to ensure pre-commit dependencies stay up to date
|
|
|
|
ci:
|
2021-11-20 03:13:01 +03:00
|
|
|
autoupdate_schedule: weekly
|
|
|
|
skip: []
|
|
|
|
submodules: false
|