Skip to content

Commit 0a25fd6

Browse files
Merge pull request #2992 from VWS-Python/enable-mypy-parallel-workers-pre-commit
Enable mypy parallel workers in pre-commit.
2 parents b5ffa4f + 2d87cce commit 0a25fd6

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
@@ -157,7 +157,7 @@ repos:
157157
- id: mypy
158158
name: mypy
159159
stages: [pre-push]
160-
entry: uv run --extra=dev -m mypy
160+
entry: uv run --extra=dev -m mypy --num-workers=4
161161
language: python
162162
types_or: [python, toml]
163163
pass_filenames: false
@@ -168,7 +168,8 @@ repos:
168168
- id: mypy-docs
169169
name: mypy-docs
170170
stages: [pre-push]
171-
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy"
171+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy
172+
--num-workers=4"
172173
language: python
173174
types_or: [markdown, rst]
174175
additional_dependencies:

0 commit comments

Comments
 (0)