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-11-24 11:17:41 +03:00
|
|
|
rev: v4.4.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-12-03 14:36:29 +03:00
|
|
|
rev: v3.3.0
|
2022-05-07 21:21:15 +03:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
2022-10-24 23:41:00 +03:00
|
|
|
args: [--py310-plus]
|
2022-05-07 21:21:15 +03:00
|
|
|
|
2020-05-01 21:10:42 +03:00
|
|
|
- repo: https://github.com/psf/black
|
2022-10-11 20:23:58 +03:00
|
|
|
rev: 22.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
|
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-11-24 11:17:41 +03:00
|
|
|
rev: 6.0.0
|
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
|