11---
22fail_fast : true
33
4- # See https://prek.j178.dev for more information
4+ # See https://pre-commit.com for more information
5+ # See https://pre-commit.com/hooks.html for more hooks
6+
7+ ci :
8+ # We use system Python, with required dependencies specified in pyproject.toml.
9+ # We therefore cannot use those dependencies in pre-commit CI.
10+ skip :
11+ - actionlint
12+ - sphinx-lint
13+ - check-manifest
14+ - deptry
15+ - doc8
16+ - docformatter
17+ - docs
18+ - interrogate
19+ - interrogate-docs
20+ - linkcheck
21+ - mypy
22+ - mypy-docs
23+ - pylint
24+ - pyproject-fmt-fix
25+ - pyright
26+ - pyright-docs
27+ - pyright-verifytypes
28+ - ty
29+ - ty-docs
30+ - pyroma
31+ - ruff-check-fix
32+ - ruff-check-fix-docs
33+ - ruff-format-fix
34+ - ruff-format-fix-docs
35+ - shellcheck
36+ - shellcheck-docs
37+ - shfmt
38+ - shfmt-docs
39+ - spelling
40+ - vulture
41+ - vulture-docs
42+ - yamlfix
43+ - zizmor
44+ - pyrefly
45+ - pyrefly-docs
546
647default_install_hook_types : [pre-commit, pre-push]
748
849repos :
9- - repo : builtin
50+ - repo : meta
51+ hooks :
52+ - id : check-useless-excludes
53+ stages : [pre-commit]
54+ - repo : https://github.com/pre-commit/pre-commit-hooks
55+ rev : v6.0.0
1056 hooks :
1157 - id : check-added-large-files
1258 stages : [pre-commit]
@@ -76,8 +122,7 @@ repos:
76122
77123 - id : shellcheck-docs
78124 name : shellcheck-docs
79- entry :
80- uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=shell
125+ entry : uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=shell
81126 --language=console --command="shellcheck --shell=bash"
82127 language : python
83128 types_or : [markdown, rst]
@@ -94,8 +139,7 @@ repos:
94139
95140 - id : shfmt-docs
96141 name : shfmt-docs
97- entry :
98- uv run --extra=dev doccmd --language=shell --language=console --skip-marker=shfmt
142+ entry : uv run --extra=dev doccmd --language=shell --language=console --skip-marker=shfmt
99143 --no-pad-file --command="shfmt --write --space-redirects --indent=4"
100144 language : python
101145 types_or : [markdown, rst]
@@ -114,8 +158,7 @@ repos:
114158 - id : mypy-docs
115159 name : mypy-docs
116160 stages : [pre-push]
117- entry :
118- uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
161+ entry : uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
119162 --command="mypy"
120163 language : python
121164 types_or : [markdown, rst]
@@ -141,8 +184,7 @@ repos:
141184 - id : pyright-docs
142185 name : pyright-docs
143186 stages : [pre-push]
144- entry :
145- uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
187+ entry : uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
146188 --command="pyright"
147189 language : python
148190 types_or : [markdown, rst]
@@ -159,8 +201,7 @@ repos:
159201
160202 - id : vulture-docs
161203 name : vulture docs
162- entry :
163- uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
204+ entry : uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
164205 --command="vulture"
165206 language : python
166207 types_or : [markdown, rst]
@@ -194,8 +235,7 @@ repos:
194235
195236 - id : pylint-docs
196237 name : pylint-docs
197- entry :
198- uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
238+ entry : uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
199239 --command="pylint"
200240 language : python
201241 stages : [manual]
@@ -228,8 +268,7 @@ repos:
228268
229269 - id : ruff-format-fix-docs
230270 name : Ruff format docs
231- entry :
232- uv run --extra=dev doccmd --language=python --no-pad-file --command="ruff
271+ entry : uv run --extra=dev doccmd --language=python --no-pad-file --command="ruff
233272 format"
234273 language : python
235274 types_or : [markdown, rst]
@@ -254,8 +293,7 @@ repos:
254293
255294 - id : interrogate-docs
256295 name : interrogate docs
257- entry :
258- uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
296+ entry : uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
259297 --command="interrogate"
260298 language : python
261299 types_or : [markdown, rst]
@@ -273,8 +311,7 @@ repos:
273311
274312 - id : linkcheck
275313 name : linkcheck
276- entry :
277- uv run --extra=dev sphinx-build -M linkcheck docs/source docs/build
314+ entry : uv run --extra=dev sphinx-build -M linkcheck docs/source docs/build
278315 -W
279316 language : python
280317 types_or : [rst]
@@ -284,8 +321,7 @@ repos:
284321
285322 - id : spelling
286323 name : spelling
287- entry :
288- uv run --extra=dev sphinx-build -M spelling docs/source docs/build
324+ entry : uv run --extra=dev sphinx-build -M spelling docs/source docs/build
289325 -W
290326 language : python
291327 types_or : [rst]
@@ -322,8 +358,7 @@ repos:
322358 - id : ty-docs
323359 name : ty-docs
324360 stages : [pre-push]
325- entry :
326- uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
361+ entry : uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
327362 --command="ty check"
328363 language : python
329364 types_or : [markdown, rst]
@@ -366,8 +401,7 @@ repos:
366401 - id : pyrefly-docs
367402 name : pyrefly-docs
368403 stages : [pre-push]
369- entry :
370- uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
404+ entry : uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
371405 --command="pyrefly check"
372406 language : python
373407 types_or : [markdown, rst]
0 commit comments