Skip to content

Commit 9f7f978

Browse files
Merge pull request #2718 from VWS-Python/add-example-workers-to-doccmd
Add --example-workers 0 to read-only doccmd hooks
2 parents cded520 + bfbfc7e commit 9f7f978

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ repos:
117117

118118
- id: shellcheck-docs
119119
name: shellcheck-docs
120-
entry: uv run --extra=dev doccmd --no-write-to-file --language=shell --language=console
121-
--command="shellcheck --shell=bash"
120+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=shell
121+
--language=console --command="shellcheck --shell=bash"
122122
language: python
123123
types_or: [markdown, rst]
124124
additional_dependencies: [uv==0.9.5]
@@ -153,7 +153,8 @@ repos:
153153
- id: mypy-docs
154154
name: mypy-docs
155155
stages: [pre-push]
156-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy"
156+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
157+
--command="mypy"
157158
language: python
158159
types_or: [markdown, rst]
159160
additional_dependencies: [uv==0.9.5]
@@ -178,7 +179,8 @@ repos:
178179
- id: pyright-docs
179180
name: pyright-docs
180181
stages: [pre-push]
181-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pyright"
182+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
183+
--command="pyright"
182184
language: python
183185
types_or: [markdown, rst]
184186
additional_dependencies: [uv==0.9.5]
@@ -194,7 +196,8 @@ repos:
194196

195197
- id: vulture-docs
196198
name: vulture docs
197-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="vulture"
199+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
200+
--command="vulture"
198201
language: python
199202
types_or: [markdown, rst]
200203
additional_dependencies: [uv==0.9.5]
@@ -227,7 +230,8 @@ repos:
227230

228231
- id: pylint-docs
229232
name: pylint-docs
230-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pylint"
233+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
234+
--command="pylint"
231235
language: python
232236
stages: [manual]
233237
types_or: [markdown, rst]
@@ -284,7 +288,8 @@ repos:
284288

285289
- id: interrogate-docs
286290
name: interrogate docs
287-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="interrogate"
291+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
292+
--command="interrogate"
288293
language: python
289294
types_or: [markdown, rst]
290295
additional_dependencies: [uv==0.9.5]

0 commit comments

Comments
 (0)