Skip to content

Enable mypy parallel workers in pre-commit#1358

Merged
adamtheturtle merged 1 commit intomainfrom
chore/mypy-workers-precommit
May 7, 2026
Merged

Enable mypy parallel workers in pre-commit#1358
adamtheturtle merged 1 commit intomainfrom
chore/mypy-workers-precommit

Conversation

@adamtheturtle
Copy link
Copy Markdown
Member

@adamtheturtle adamtheturtle commented May 7, 2026

Summary

  • Configure the mypy pre-push hook to run with 4 parallel workers via --num-workers=4.
  • Update mypy-docs so worker configuration lives inside the doccmd --command invocation (mypy --num-workers=4) instead of doccmd top-level args.
  • Keep hook formatting consistent with existing YAML style.

Test plan

  • Run pre-commit run --hook-stage pre-push mypy-docs --all-files
  • Run repository commit hooks during git commit
  • Run repository push hooks during git push

Made with Cursor


Note

Low Risk
Low risk: only adjusts pre-push mypy/mypy-docs hook invocation flags to enable parallel workers, affecting developer tooling performance rather than runtime behavior.

Overview
Speeds up pre-push type checking by running mypy with --num-workers=4.

Updates the mypy-docs hook to pass the worker flag inside the doccmd --command string (i.e., mypy --num-workers=4) to keep argument handling and YAML formatting consistent.

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

Co-authored-by: Cursor <cursoragent@cursor.com>
@adamtheturtle adamtheturtle deployed to development May 7, 2026 12:13 — with GitHub Actions Active
@adamtheturtle adamtheturtle merged commit 7585a44 into main May 7, 2026
30 checks passed
@adamtheturtle adamtheturtle deleted the chore/mypy-workers-precommit 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