-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
88 lines (76 loc) · 2.21 KB
/
.pre-commit-config.yaml
File metadata and controls
88 lines (76 loc) · 2.21 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
- id: check-toml
- id: debug-statements
- id: name-tests-test
args: ["--pytest-test-first"]
- repo: https://github.com/python-poetry/poetry
rev: 2.3.2
hooks:
- id: poetry-check
- id: poetry-lock
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
rev: v1.7.12.24
hooks:
- id: actionlint
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
verbose: true
exclude: ^docs/(index|api)\.md$
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
- repo: https://github.com/econchick/interrogate
rev: 1.7.0
hooks:
- id: interrogate
args: ["-i", "-c", "pyproject.toml"]
pass_filenames: false
- repo: https://github.com/jsh9/pydoclint
rev: 0.8.3
hooks:
- id: pydoclint
args: ["--config", "./pyproject.toml"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
- id: ruff-format
- id: ruff-check
args: ["--fix", "--show-fixes"]
- repo: https://github.com/PyCQA/doc8
rev: "v2.0.0"
hooks:
- id: doc8
args: ["--quiet", "--max-line-length=200"]
files: ^(docs/.*|.*\.md)$
- repo: https://github.com/codespell-project/codespell
rev: "v2.4.2"
hooks:
- id: codespell
args: ["-L", "ans,te,manuel,astroid,assignin"]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
hooks:
- id: validate-pyproject
# Optional extra validations from SchemaStore:
additional_dependencies: ["validate-pyproject-schema-store[all]"]
- repo: https://github.com/scientific-python/cookie
rev: "2026.04.04"
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
- repo: https://github.com/tcort/markdown-link-check
rev: v3.14.2
hooks:
- id: markdown-link-check
stages: [manual]
args: ["--config", ".markdown_link_config.json"]