| 1 |
# See https://prek.j178.dev for more information |
| 2 |
exclude: "CHANGELOG.md|.copier-answers.yml" |
| 3 |
default_stages: [pre-commit] |
| 4 |
|
| 5 |
repos: |
| 6 |
- repo: builtin |
| 7 |
hooks: |
| 8 |
- id: no-commit-to-branch |
| 9 |
args: ["--branch", "main"] |
| 10 |
- id: check-json |
| 11 |
- id: check-toml |
| 12 |
- id: check-xml |
| 13 |
- id: check-yaml |
| 14 |
- id: detect-private-key |
| 15 |
- repo: https://github.com/astral-sh/uv-pre-commit |
| 16 |
rev: 0.12.13 # renovate: customPinnedDependency=uv,datasource=pypi |
| 17 |
hooks: |
| 18 |
- id: uv-lock |
| 19 |
args: ["--check"] |
| 20 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
| 21 |
rev: v0.16.7 |
| 22 |
hooks: |
| 23 |
- id: ruff-check |
| 24 |
args: |
| 25 |
- --fix |
| 26 |
- id: ruff-format |
| 27 |
- repo: https://github.com/commitizen-tools/commitizen |
| 28 |
rev: v4.18.1 |
| 29 |
hooks: |
| 30 |
- id: commitizen |
| 31 |
stages: [commit-msg] |
| 32 |
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook |
| 33 |
rev: v9.26.0 |
| 34 |
hooks: |
| 35 |
- id: commitlint |
| 36 |
stages: [commit-msg] |
| 37 |
- repo: https://github.com/rbubley/mirrors-prettier |
| 38 |
rev: v3.9.6 |
| 39 |
hooks: |
| 40 |
- id: prettier |
| 41 |
args: ["--tab-width", "2"] |
| 42 |
- repo: https://github.com/asottile/pyupgrade |
| 43 |
rev: v3.21.2 |
| 44 |
hooks: |
| 45 |
- id: pyupgrade |
| 46 |
args: [--py37-plus] |
| 47 |
- repo: https://github.com/codespell-project/codespell |
| 48 |
rev: v2.4.3 |
| 49 |
hooks: |
| 50 |
- id: codespell |
| 51 |
args: ["--skip=tests/fixtures/*.json"] |
| 52 |
- repo: https://github.com/pre-commit/mirrors-mypy |
| 53 |
rev: v2.3.1 |
| 54 |
hooks: |
| 55 |
- id: mypy |
| 56 |
additional_dependencies: [] |