Skip to content

Commit 0b0e5cf

Browse files
Merge pull request #2747 from VWS-Python/add-example-workers-to-doccmd
Add --example-workers 0 to read-only doccmd hooks
2 parents 842a827 + b696d9c commit 0b0e5cf

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
@@ -133,8 +133,8 @@ repos:
133133
- id: shellcheck-docs
134134
name: shellcheck-docs
135135
# We exclude SC2215 as it is a false positive for an unknown reason on Windows.
136-
entry: uv run --extra=dev doccmd --no-write-to-file --language=shell --language=console
137-
--command="shellcheck --shell=bash --exclude=SC2215"
136+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=shell
137+
--language=console --command="shellcheck --shell=bash --exclude=SC2215"
138138
language: python
139139
types_or: [markdown, rst]
140140
additional_dependencies: [uv==0.9.5]
@@ -169,7 +169,8 @@ repos:
169169
- id: mypy-docs
170170
name: mypy-docs
171171
stages: [pre-push]
172-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy"
172+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
173+
--command="mypy"
173174
language: python
174175
types_or: [markdown, rst]
175176

@@ -193,7 +194,8 @@ repos:
193194
- id: pyright-docs
194195
name: pyright-docs
195196
stages: [pre-push]
196-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pyright"
197+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
198+
--command="pyright"
197199
language: python
198200
types_or: [markdown, rst]
199201

@@ -217,7 +219,8 @@ repos:
217219

218220
- id: vulture-docs
219221
name: vulture docs
220-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="vulture"
222+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
223+
--command="vulture"
221224
language: python
222225
types_or: [python]
223226
pass_filenames: false
@@ -251,7 +254,8 @@ repos:
251254

252255
- id: pylint-docs
253256
name: pylint-docs
254-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pylint"
257+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
258+
--command="pylint"
255259
language: python
256260
stages: [manual]
257261
types_or: [markdown, rst]
@@ -307,7 +311,8 @@ repos:
307311

308312
- id: interrogate-docs
309313
name: interrogate docs
310-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="interrogate"
314+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
315+
--command="interrogate"
311316
language: python
312317
types_or: [markdown, rst]
313318
additional_dependencies: [uv==0.9.5]

0 commit comments

Comments
 (0)