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
|
2022-06-08 19:54:58 +03:00
|
|
|
rev: v4.3.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
|
|
|
|
- id: check-yaml
|
2019-10-29 17:47:27 +03:00
|
|
|
|
2022-05-07 21:21:15 +03:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-09-16 06:17:49 +03:00
|
|
|
rev: v2.38.0
|
2022-05-07 21:21:15 +03:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py39-plus]
|
|
|
|
|
2020-05-01 21:10:42 +03:00
|
|
|
- repo: https://github.com/psf/black
|
2022-09-01 09:19:06 +03:00
|
|
|
rev: 22.8.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
|
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
|
2022-08-05 01:33:09 +03:00
|
|
|
rev: 5.0.4
|
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
|