1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
hooks:
- id: ruff-format
- id: ruff
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
# - repo: https://github.com/tox-dev/tox-ini-fmt
# rev: "1.3.1"
# hooks:
# - id: tox-ini-fmt
# args: ["-p", "fix_lint"]
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
|