Skip to content

Configure Mypy parallelism in pyproject.toml - #3276

Merged
adamtheturtle merged 1 commit into
mainfrom
codex/mypy-parallel-auto
Oct 2, 2026
Merged

adamtheturtle merged 1 commit into
mainfrom
codex/mypy-parallel-auto

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Configure num_workers = "auto" in [tool.mypy] so direct Mypy runs use the project configuration. Remove the ordinary and documentation hook --num-workers=4 overrides so both inherit the configured worker count.

Keep existing doccmd example-worker settings unchanged.

Validation: the configured project formatter, Prek configuration validation, git diff --check, and the ordinary and documentation Mypy Prek hooks pass. Hooks ran sequentially with PREK_CONCURRENT_BATCHES=1.

Local benchmark: compiled Mypy 2.4.0 on macOS ARM64, three repetitions per mode, comparing --num-workers=0 with the project default (auto, eight workers on this host). Median cold-cache time changed from 3.145s to 2.016s (1.56× speedup). Median warm-cache time changed from 0.141s to 0.245s. All 12 runs passed with identical output. Fresh Mypy caches isolate the cold runs; timings exclude uv setup and launcher overhead.

@adamtheturtle
adamtheturtle merged commit 1d1caf4 into main Oct 2, 2026
13 checks passed
@adamtheturtle
adamtheturtle deleted the codex/mypy-parallel-auto branch October 2, 2026 18:25

This branch was successfully deployed

1 active deployment
development — e24e43cc Deployed Oct 2, 2026 by adamtheturtle via pages #1130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant