Skip to content

Commit f455ade

Browse files
Update mypy pre-commit hooks to use fixed worker flag.
Align mypy and mypy-docs entries with inline --num-workers=4 usage and remove the example-workers variant. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7b70f40 commit f455ade

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,19 +184,18 @@ repos:
184184
- id: mypy
185185
name: mypy
186186
stages: [pre-push]
187-
entry: uv run --extra=dev -m mypy
187+
entry: uv run --extra=dev -m mypy --num-workers=4
188188
language: python
189189
types_or: [python, toml]
190190
pass_filenames: false
191191
additional_dependencies:
192192
- *uv_version
193193

194-
# We do not use --example-workers 0 due to https://github.com/python/mypy/issues/18283
195194
- id: mypy-docs
196195
name: mypy-docs
197196
stages: [pre-push]
198-
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 4 --language=python
199-
--command="mypy"
197+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy
198+
--num-workers=4"
200199
language: python
201200
types_or: [markdown, rst]
202201
additional_dependencies:

0 commit comments

Comments
 (0)