2 - repo: https://github.com/astral-sh/ruff-pre-commit
6 name: Run Ruff on Lib/test/
7 args: [--exit-non-zero-on-fix]
10 name: Run Ruff on Argument Clinic
11 args: [--exit-non-zero-on-fix, --config=Tools/clinic/.ruff.toml]
12 files: ^Tools/clinic/|Lib/test/test_clinic.py
14 - repo: https://github.com/pre-commit/pre-commit-hooks
18 exclude: ^Lib/test/test_tomllib/
20 - id: end-of-file-fixer
22 exclude: Lib/test/tokenizedata/coding20731.py
23 - id: trailing-whitespace
24 types_or: [c, inc, python, rst]
26 - repo: https://github.com/sphinx-contrib/sphinx-lint
30 args: [--enable=default-role]
31 files: ^Doc/|^Misc/NEWS.d/
35 - id: check-hooks-apply
36 - id: check-useless-excludes