Skip to content

Commit f065522

Browse files
Enable mypy parallel workers in pre-commit.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent d45c3d6 commit f065522

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ repos:
174174
- id: mypy
175175
name: mypy
176176
stages: [pre-push]
177-
entry: uv run --extra=dev -m mypy
177+
entry: uv run --extra=dev -m mypy --num-workers=4
178178
language: python
179179
types_or: [python, toml]
180180
pass_filenames: false
@@ -185,7 +185,8 @@ repos:
185185
- id: mypy-docs
186186
name: mypy-docs
187187
stages: [pre-push]
188-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy"
188+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy
189+
--num-workers=4"
189190
language: python
190191
types_or: [markdown, rst]
191192

0 commit comments

Comments
 (0)