2023-04-15 15:21:18 +03:00
|
|
|
exclude: "{{cookiecutter.project_slug}}|.github/contributors.json|CHANGELOG.md|CONTRIBUTORS.md"
|
2024-10-06 05:40:22 +03:00
|
|
|
default_stages: [pre-commit]
|
2021-11-26 18:41:50 +03:00
|
|
|
|
2023-12-06 12:40:04 +03:00
|
|
|
default_language_version:
|
2024-03-18 21:55:00 +03:00
|
|
|
python: python3.12
|
2023-12-06 12:40:04 +03:00
|
|
|
|
2021-11-26 18:41:50 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-10-06 05:40:22 +03:00
|
|
|
rev: v5.0.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
|
2024-01-02 14:49:06 +03:00
|
|
|
rev: "v4.0.0-alpha.8"
|
2023-04-15 14:15:15 +03:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
args: ["--tab-width", "2"]
|
2021-11-26 18:41:50 +03:00
|
|
|
|
2024-12-31 13:56:06 +03:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
rev: v0.8.4
|
2022-05-07 21:21:15 +03:00
|
|
|
hooks:
|
2024-12-31 13:56:06 +03:00
|
|
|
- id: ruff
|
|
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
|
|
- id: ruff-format
|
2021-11-26 18:41:50 +03:00
|
|
|
|
2024-09-06 15:05:26 +03:00
|
|
|
- repo: https://github.com/tox-dev/pyproject-fmt
|
2024-10-30 20:01:41 +03:00
|
|
|
rev: "v2.5.0"
|
2024-09-06 15:05:26 +03:00
|
|
|
hooks:
|
|
|
|
- id: pyproject-fmt
|
|
|
|
|
2021-11-26 18:41:50 +03:00
|
|
|
ci:
|
|
|
|
autoupdate_schedule: weekly
|
|
|
|
skip: []
|
|
|
|
submodules: false
|