Skip to content

Commit fce3a97

Browse files
committed
Fix: Remove --example-workers 0 only from mypy-docs hook
This reverts the previous incorrect change that removed --example-workers 0 from all hooks, and correctly removes it only from mypy-docs. See python/mypy#18283
1 parent 73b8d04 commit fce3a97

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
fail_fast: true
33

4-
# We do not use --example-workers 0 due to https://github.com/python/mypy/issues/18283
5-
64
# See https://pre-commit.com for more information
75
# See https://pre-commit.com/hooks.html for more hooks
86

@@ -124,8 +122,8 @@ repos:
124122

125123
- id: shellcheck-docs
126124
name: shellcheck-docs
127-
entry: uv run --extra=dev doccmd --no-write-to-file --language=shell --language=console
128-
--command="shellcheck --shell=bash"
125+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=shell
126+
--language=console --command="shellcheck --shell=bash"
129127
language: python
130128
types_or: [markdown, rst]
131129
additional_dependencies: [uv==0.9.5]
@@ -160,7 +158,8 @@ repos:
160158
- id: mypy-docs
161159
name: mypy-docs
162160
stages: [pre-push]
163-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy"
161+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python
162+
--command="mypy"
164163
language: python
165164
types_or: [markdown, rst]
166165
additional_dependencies: [uv==0.9.5]
@@ -185,7 +184,8 @@ repos:
185184
- id: pyright-docs
186185
name: pyright-docs
187186
stages: [pre-push]
188-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pyright"
187+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
188+
--command="pyright"
189189
language: python
190190
types_or: [markdown, rst]
191191
additional_dependencies: [uv==0.9.5]
@@ -201,7 +201,8 @@ repos:
201201

202202
- id: vulture-docs
203203
name: vulture docs
204-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="vulture"
204+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
205+
--command="vulture"
205206
language: python
206207
types_or: [markdown, rst]
207208
additional_dependencies: [uv==0.9.5]
@@ -234,7 +235,8 @@ repos:
234235

235236
- id: pylint-docs
236237
name: pylint-docs
237-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pylint"
238+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
239+
--command="pylint"
238240
language: python
239241
stages: [manual]
240242
types_or: [markdown, rst]
@@ -291,7 +293,8 @@ repos:
291293

292294
- id: interrogate-docs
293295
name: interrogate docs
294-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="interrogate"
296+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
297+
--command="interrogate"
295298
language: python
296299
types_or: [markdown, rst]
297300
additional_dependencies: [uv==0.9.5]
@@ -355,8 +358,8 @@ repos:
355358
- id: ty-docs
356359
name: ty-docs
357360
stages: [pre-push]
358-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="ty
359-
check"
361+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
362+
--command="ty check"
360363
language: python
361364
types_or: [markdown, rst]
362365
additional_dependencies: [uv==0.9.5]
@@ -398,8 +401,8 @@ repos:
398401
- id: pyrefly-docs
399402
name: pyrefly-docs
400403
stages: [pre-push]
401-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pyrefly
402-
check"
404+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
405+
--command="pyrefly check"
403406
language: python
404407
types_or: [markdown, rst]
405408
additional_dependencies: [uv==0.9.5]

0 commit comments

Comments
 (0)