Skip to content

Commit e1f7636

Browse files
Merge pull request #1958 from VWS-Python/codex/mypy-parallel-auto
Configure Mypy parallelism in pyproject.toml
2 parents 0c8c45d + 1f48ee0 commit e1f7636

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎prek.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ hooks = [
166166
id = "mypy",
167167
name = "mypy",
168168
stages = ["pre-push"],
169-
entry = "uv run --group=dev -m mypy --num-workers=4",
169+
entry = "uv run --group=dev -m mypy",
170170
language = "python",
171171
types_or = [
172172
"python",
@@ -179,7 +179,7 @@ hooks = [
179179
id = "mypy-docs",
180180
name = "mypy-docs",
181181
stages = ["pre-push"],
182-
entry = 'uv run --group=dev doccmd --no-write-to-file --language=python --command="mypy --num-workers=4"',
182+
entry = 'uv run --group=dev doccmd --no-write-to-file --language=python --command="mypy"',
183183
language = "python",
184184
types_or = [
185185
"markdown",

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ strict = true
367367
plugins = [
368368
"mypy_strict_kwargs",
369369
]
370+
num_workers = "auto"
370371

371372
[tool.pyrefly]
372373
errors.non-exhaustive-match = "error"

0 commit comments

Comments
 (0)