Skip to content

Add --num-workers auto option - #21789

Open
schnellerhase wants to merge 2 commits into
python:masterfrom
schnellerhase:num_workers_auto
Open

Add --num-workers auto option#21789
schnellerhase wants to merge 2 commits into
python:masterfrom
schnellerhase:num_workers_auto

Conversation

@schnellerhase

Copy link
Copy Markdown

Adds --num-workers auto behaviour, which automatically detects and uses the physical available CPU core count for parallel execution.

Behaviour is consistent with pytest interface.

Fixes #21477.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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.

Detect number of CPUs with --num-workers 0

1 participant