]> git.ipfire.org Git - thirdparty/Python/cpython.git/blob - .pre-commit-config.yaml
GH-113655: Lower the C recursion limit on various platforms (GH-113944)
[thirdparty/Python/cpython.git] / .pre-commit-config.yaml
1 repos:
2 - repo: https://github.com/astral-sh/ruff-pre-commit
3 rev: v0.1.7
4 hooks:
5 - id: ruff
6 name: Run Ruff on Lib/test/
7 args: [--exit-non-zero-on-fix]
8 files: ^Lib/test/
9 - id: ruff
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
13
14 - repo: https://github.com/pre-commit/pre-commit-hooks
15 rev: v4.5.0
16 hooks:
17 - id: check-toml
18 exclude: ^Lib/test/test_tomllib/
19 - id: check-yaml
20 - id: end-of-file-fixer
21 types: [python]
22 exclude: Lib/test/tokenizedata/coding20731.py
23 - id: trailing-whitespace
24 types_or: [c, inc, python, rst]
25
26 - repo: https://github.com/sphinx-contrib/sphinx-lint
27 rev: v0.9.1
28 hooks:
29 - id: sphinx-lint
30 args: [--enable=default-role]
31 files: ^Doc/|^Misc/NEWS.d/
32
33 - repo: meta
34 hooks:
35 - id: check-hooks-apply
36 - id: check-useless-excludes