Skip to content

Run mypy with four worker processes and uv#149726

Merged
hugovk merged 2 commits into
python:mainfrom
hugovk:3.16-mypy--num-workers
May 13, 2026
Merged

Run mypy with four worker processes and uv#149726
hugovk merged 2 commits into
python:mainfrom
hugovk:3.16-mypy--num-workers

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented May 12, 2026

Follow on from #149709, mypy 2.0.0 introduced --num-workers.

Along with uv, makes the workflow about twice as fast.

Before: 4m 34s https://github.com/hugovk/cpython/actions/runs/25497945357/usage
After: 2m 25s https://github.com/hugovk/cpython/actions/runs/25742656577/usage

Over the last 30 days, this workflow had 662 runs taking 5,953 minutes.

cc @hauntsaninja

@hugovk hugovk added the infra CI, GitHub Actions, buildbots, Dependabot, etc. label May 12, 2026
@hugovk hugovk added skip issue skip news needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels May 12, 2026
Copy link
Copy Markdown
Contributor

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Parallel checking is still in beta, let me know if you see issues.

(If we do need to disable it, we'll be able to keep some of the speedup by using --native-parse)

@hugovk hugovk merged commit 6304eb1 into python:main May 13, 2026
76 checks passed
@hugovk hugovk deleted the 3.16-mypy--num-workers branch May 13, 2026 11:03
@miss-islington-app
Copy link
Copy Markdown

Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Sorry, @hugovk, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 6304eb1f5b93f682bff558befe4a7b9585f4601e 3.14

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 13, 2026

GH-149773 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label May 13, 2026
@miss-islington-app
Copy link
Copy Markdown

Sorry, @hugovk, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 6304eb1f5b93f682bff558befe4a7b9585f4601e 3.13

@hugovk hugovk removed the needs backport to 3.13 bugs and security fixes label May 13, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 13, 2026

GH-149774 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label May 13, 2026
hugovk added a commit that referenced this pull request May 13, 2026
Run mypy with four worker processes and uv (GH-149726)
(cherry picked from commit 6304eb1)

Co-authored-by: Hugo van Kemenade <[email protected]>
hugovk added a commit that referenced this pull request May 13, 2026
hugovk added a commit that referenced this pull request May 13, 2026
) (#149775)

[3.14] Run mypy with four worker processes and uv (GH-149726) (GH-149774)
(cherry picked from commit bb5a81a)


(cherry picked from commit 6304eb1)

Co-authored-by: Hugo van Kemenade <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra CI, GitHub Actions, buildbots, Dependabot, etc. skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants