| 1 |
ci: |
| 2 |
autoupdate_schedule: "quarterly" |
| 3 |
|
| 4 |
default_language_version: |
| 5 |
python: "python3.12" |
| 6 |
|
| 7 |
exclude: "tests/templates/" |
| 8 |
|
| 9 |
repos: |
| 10 |
- repo: "meta" |
| 11 |
hooks: |
| 12 |
- id: "check-hooks-apply" |
| 13 |
- id: "check-useless-excludes" |
| 14 |
|
| 15 |
- repo: "https://github.com/pre-commit/pre-commit-hooks" |
| 16 |
rev: "3e8a8703264a2f4a69428a0aa4dcb512790b2c8c" # frozen: v6.0.0 |
| 17 |
hooks: |
| 18 |
- id: "check-added-large-files" |
| 19 |
- id: "check-merge-conflict" |
| 20 |
- id: "check-yaml" |
| 21 |
- id: "end-of-file-fixer" |
| 22 |
- id: "mixed-line-ending" |
| 23 |
args: |
| 24 |
- "--fix=lf" |
| 25 |
- id: "trailing-whitespace" |
| 26 |
|
| 27 |
- repo: "https://github.com/asottile/pyupgrade" |
| 28 |
rev: "75992aaa40730136014f34227e0135f63fc951b4" # frozen: v3.21.2 |
| 29 |
hooks: |
| 30 |
- id: "pyupgrade" |
| 31 |
name: "Enforce Python 3.9+ idioms" |
| 32 |
args: |
| 33 |
- "--py39-plus" |
| 34 |
|
| 35 |
- repo: "https://github.com/psf/black-pre-commit-mirror" |
| 36 |
rev: "4160603246a6b365d4a2af661c6d71b0a0f50478" # frozen: 26.5.1 |
| 37 |
hooks: |
| 38 |
- id: "black" |
| 39 |
|
| 40 |
- repo: "https://github.com/pycqa/flake8" |
| 41 |
rev: "c48217e1fc006c2dddd14df54e83b67da15de5cd" # frozen: 7.3.0 |
| 42 |
hooks: |
| 43 |
- id: "flake8" |
| 44 |
additional_dependencies: |
| 45 |
- "flake8-bugbear==24.8.19" |
| 46 |
|
| 47 |
- repo: "https://github.com/pre-commit/mirrors-mypy" |
| 48 |
rev: "41e691678310dfd3833f7ab4e180ddb014310356" # frozen: v2.3.0 |
| 49 |
hooks: |
| 50 |
- id: "mypy" |
| 51 |
additional_dependencies: |
| 52 |
- "flask>=3.0" |
| 53 |
|
| 54 |
- repo: "https://github.com/python-jsonschema/check-jsonschema" |
| 55 |
rev: "6b63472e72e1a91ed8a2f6d483790dfb644fa1d3" # frozen: 0.37.4 |
| 56 |
hooks: |
| 57 |
- id: "check-dependabot" |
| 58 |
- id: "check-github-workflows" |
| 59 |
|
| 60 |
- repo: "https://github.com/rhysd/actionlint" |
| 61 |
rev: "914e7df21a07ef503a81201c76d2b11c789d3fca" # frozen: v1.7.12 |
| 62 |
hooks: |
| 63 |
- id: "actionlint" |