-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
74 lines (74 loc) · 2.49 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
74 lines (74 loc) · 2.49 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
ci:
autoupdate_schedule: monthly
# these build the local Rust extension via uv; pre-commit.ci has no toolchain, so CI regenerates instead
skip: [readme-pyproject-fmt, readme-tox-toml-fmt]
repos:
- repo: local
hooks:
- id: readme-pyproject-fmt
name: regenerate pyproject-fmt README (runs doc examples through the formatter)
language: system
entry: uv run --project pyproject-fmt python tasks/generate_readme.py pyproject-fmt
pass_filenames: false
always_run: true
- id: readme-tox-toml-fmt
name: regenerate tox-toml-fmt README (runs doc examples through the formatter)
language: system
entry: uv run --project tox-toml-fmt python tasks/generate_readme.py tox-toml-fmt
pass_filenames: false
always_run: true
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.29.3"
hooks:
- id: pyproject-fmt
# pin until toml-fmt-common 1.3.4 (with the _build_cli alias) is released; 1.3.3
# dropped that symbol and breaks the published pyproject-fmt (tox-dev/toml-fmt#355)
additional_dependencies: ["toml-fmt-common<1.3.3"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.16.6"
hooks:
- id: ruff-format
args: ["--config", "pyproject.toml"]
- id: ruff-check
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix", "--config", "pyproject.toml"]
- repo: https://github.com/google/yamlfmt
rev: "v0.21.0"
hooks:
- id: yamlfmt
- repo: local
hooks:
- id: mdformat
name: mdformat
entry: mdformat --wrap 120
language: python
types: [markdown]
additional_dependencies:
- mdformat-gfm>=1
- mdformat-ruff>=0.1.3
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.38.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
additional_dependencies: ["tomli>=2.4"]
- repo: https://github.com/abravalheri/validate-pyproject
rev: '0.26'
hooks:
- id: validate-pyproject
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.30.0
hooks:
- id: zizmor
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace