Skip to content

Conversation

@adamtheturtle
Copy link
Member

Summary

  • Add --example-workers 0 to all doccmd hooks using --no-write-to-file

Benefits

  • Enables parallel processing of code blocks in documentation
  • Significantly speeds up linter hooks (mypy, pyright, shellcheck, vulture, etc.)
  • Auto-detects optimal worker count based on CPU cores

Details

The --example-workers 0 flag enables doccmd to process multiple code blocks concurrently when running read-only linters. This is safe because these hooks use --no-write-to-file, which means they only emit diagnostics without modifying files.

🤖 Generated with Claude Code

@adamtheturtle adamtheturtle merged commit 0b0e5cf into main Nov 8, 2025
100 of 103 checks passed
@adamtheturtle adamtheturtle deleted the add-example-workers-to-doccmd branch November 8, 2025 20:36
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.

2 participants