-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
111 lines (98 loc) · 3.69 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
111 lines (98 loc) · 3.69 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: docs/mkdocs.yml
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/abravalheri/validate-pyproject
rev: 4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7 # frozen: v0.25
hooks:
- id: validate-pyproject
# The package lives in py/, not at the repo root
files: 'pyproject\.toml$'
additional_dependencies: ["validate-pyproject-schema-store[all]"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 5030dca3047414c338091455ac41803200ec1f0f # frozen: 0.37.3
hooks:
- id: check-dependabot
- id: check-github-workflows
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: '745be0411e3c150e246d527e531e5a221b8c3462' # frozen: v0.15.19
hooks:
- id: ruff-format
- id: ruff-check
args: ["--fix", "--show-fixes"]
- repo: https://github.com/rhysd/actionlint
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
hooks:
- id: actionlint
files: ".github/workflows/"
args: ["-ignore", "SC1090", "-ignore", "SC2046", "-ignore", "SC2086", "-ignore", "SC2129", "-ignore", "SC2155"]
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: e3eebf65325ccc992422292cb7a4baee967cf815 # frozen: v1.26.1
hooks:
- id: zizmor
files: "^\\.github"
exclude: ".github/release.yml"
args: [--persona=pedantic]
- repo: https://github.com/codespell-project/codespell
# Configuration for codespell is in .codespellrc
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
hooks:
- id: codespell
- repo: local
hooks:
- id: rustfmt
name: rustfmt
description: Check if all files follow the rustfmt style
entry: cargo fmt --all -- --color always
language: system
pass_filenames: false
- id: clippy
name: clippy
description: Run Cargo Clippy
entry: cargo clippy
language: system
pass_filenames: false
- id: duplicate-common-variable-names
name: duplicate-common-variable-names
description: Check for duplicate common variable names in standards
entry: uv run --script utils/error_on_duplicate_variables.py
language: system
pass_filenames: false
files: ^core/standards/.*\.yaml$
- repo: https://github.com/adamchainz/blacken-docs
rev: "fda77690955e9b63c6687d8806bafd56a526e45f" # frozen: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies: [black==26.*]
- repo: https://github.com/hukkin/mdformat
rev: 82912cdaea4fb830f751504486a7879c70526547 # frozen: 1.0.0
hooks:
- id: mdformat
- repo: https://github.com/biomejs/pre-commit
rev: "4b413f3670a174f31451d158949f7a5938352eff" # frozen: v2.5.1
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/biome@2.5.0"]
- repo: https://github.com/scientific-python/cookie
rev: "8f0581cc50b14023b14a9c77e9b358738ba637e7" # frozen: 2026.06.18
hooks:
- id: sp-repo-review
name: repo-review (root)
entry: repo-review --ignore PY001,PY004,PY005,PP301,GH212,PC140,PC170
- id: sp-repo-review
name: repo-review (py)
entry: repo-review py
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 30b52ca8c5484d76b471a31eca33c1ab36f7f01f # frozen: 43.242.0
hooks:
- id: renovate-config-validator
args: [--strict]
auto_update:
cooldown_days: 7