-
-
Notifications
You must be signed in to change notification settings - Fork 412
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (64 loc) · 1.91 KB
/
.pre-commit-config.yaml
File metadata and controls
67 lines (64 loc) · 1.91 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
ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
autoupdate_schedule: "monthly"
autofix_prs: false
# mypy runs as a `language: system` hook via `uv run mypy`, which needs `uv`
# and the repo checkout to resolve the dev environment from `uv.lock` —
# unavailable on pre-commit.ci's runners. It is covered instead by the Lint
# GitHub Actions workflow and by local prek runs.
skip: [mypy]
default_stages: [pre-commit, pre-push]
default_language_version:
python: python3.12
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.15
hooks:
- id: ruff-check
args: ["--fix", "--show-fixes"]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: ["-L", "fo,ihs,kake,te", "-S", "fixture"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
exclude: mkdocs.yml
- id: trailing-whitespace
- repo: local
hooks:
- id: mypy
name: mypy
language: system
entry: uv run --frozen mypy
pass_filenames: false
always_run: true
types_or: [python, pyi]
- repo: https://github.com/scientific-python/cookie
rev: 2026.04.04
hooks:
- id: sp-repo-review
- repo: https://github.com/numpy/numpydoc
rev: v1.10.0
hooks:
- id: numpydoc-validation
- repo: local
hooks:
- id: ban-lstrip-rstrip
name: ban lstrip/rstrip
language: pygrep
# Matches .lstrip() or .rstrip() where the string argument is 2+ characters.
entry: "\\.(lstrip|rstrip)\\([\"'][^\"']{2,}[\"']\\)"
types: [python]
files: ^(src|tests)/
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.25.2
hooks:
- id: zizmor
- repo: https://github.com/twisted/towncrier
rev: 25.8.0
hooks:
- id: towncrier-check