2021-11-29 14:16:05 +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
|
2021-05-17 03:06:30 +03:00
|
|
|
rev: v4.0.1
|
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
|
|
|
|
- id: check-yaml
|
2019-10-29 17:47:27 +03:00
|
|
|
|
2020-05-01 21:10:42 +03:00
|
|
|
- repo: https://github.com/psf/black
|
2021-11-19 14:55:43 +03:00
|
|
|
rev: 21.11b1
|
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
|
2021-11-10 03:05:56 +03:00
|
|
|
rev: 5.10.1
|
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
|
|
|
|
rev: 4.0.1
|
2019-10-29 17:47:27 +03:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2021-11-20 03:13:01 +03:00
|
|
|
args: ["--config=setup.cfg"]
|
2020-05-01 21:10:42 +03:00
|
|
|
additional_dependencies: [flake8-isort]
|
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
|