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-07-10 23:44:13 +03:00
|
|
|
rev: v2.34.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-06-28 10:23:08 +03:00
|
|
|
rev: 22.6.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
|
|
|
|
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
|