2023-04-15 15:21:18 +03:00
|
|
|
exclude: "{{cookiecutter.project_slug}}|.github/contributors.json|CHANGELOG.md|CONTRIBUTORS.md"
|
2021-11-26 18:41:50 +03:00
|
|
|
default_stages: [commit]
|
|
|
|
|
2023-12-06 12:40:04 +03:00
|
|
|
default_language_version:
|
|
|
|
python: python3.11
|
|
|
|
|
2021-11-26 18:41:50 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-10-08 05:24:07 +03:00
|
|
|
rev: v4.5.0
|
2021-11-26 18:41:50 +03:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
2023-04-15 14:15:15 +03:00
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-json
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-xml
|
2021-11-26 18:41:50 +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: detect-private-key
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2023-12-07 12:19:42 +03:00
|
|
|
rev: "v4.0.0-alpha.3-1"
|
2023-04-15 14:15:15 +03:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
args: ["--tab-width", "2"]
|
2021-11-26 18:41:50 +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
|
|
|
exclude: hooks/
|
|
|
|
|
2021-11-26 18:41:50 +03:00
|
|
|
- repo: https://github.com/psf/black
|
2023-11-09 11:55:24 +03:00
|
|
|
rev: 23.11.0
|
2021-11-26 18:41:50 +03:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
2023-01-28 20:47:29 +03:00
|
|
|
rev: 5.12.0
|
2021-11-26 18:41:50 +03:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2023-08-02 01:02:31 +03:00
|
|
|
rev: 6.1.0
|
2021-11-26 18:41:50 +03:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
|
|
|
|
ci:
|
|
|
|
autoupdate_schedule: weekly
|
|
|
|
skip: []
|
|
|
|
submodules: false
|