Skip to content

Enable mypy parallel workers in pre-commit#1666

Merged
adamtheturtle merged 2 commits intomainfrom
enable-mypy-parallel-workers
May 7, 2026
Merged

Enable mypy parallel workers in pre-commit#1666
adamtheturtle merged 2 commits intomainfrom
enable-mypy-parallel-workers

Conversation

@adamtheturtle
Copy link
Copy Markdown
Member

@adamtheturtle adamtheturtle commented May 7, 2026

Summary

  • configure the mypy pre-push hook to run with --num-processes 4
  • update mypy-docs to pass the same worker count inside the --command string for doccmd

Test plan

  • run commit-time pre-commit hooks
  • run pre-push hooks during git push

Made with Cursor


Note

Low Risk
Low risk configuration-only change; it only affects local pre-push linting performance and could at worst surface mypy concurrency quirks.

Overview
Updates the pre-push mypy hook to run with --num-workers=4 for faster type-checking.

Makes the same worker setting apply to mypy-docs by embedding --num-workers=4 into the doccmd --command string.

Reviewed by Cursor Bugbot for commit 6a212cc. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 48445c3. Configure here.

Comment thread .pre-commit-config.yaml Outdated
Align mypy and mypy-docs hook commands with the inline --num-workers=4 style.

Co-authored-by: Cursor <cursoragent@cursor.com>
@adamtheturtle adamtheturtle deployed to development May 7, 2026 12:31 — with GitHub Actions Active
@adamtheturtle adamtheturtle merged commit 1349f0b into main May 7, 2026
16 checks passed
@adamtheturtle adamtheturtle deleted the enable-mypy-parallel-workers branch May 7, 2026 14:18
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