Skip to content

Enable generating stubs in parallel (multiprocessing)#110

Merged
lagru merged 22 commits intomainfrom
multiprocessing
Nov 3, 2025
Merged

Enable generating stubs in parallel (multiprocessing)#110
lagru merged 22 commits intomainfrom
multiprocessing

Conversation

@lagru
Copy link
Copy Markdown
Member

@lagru lagru commented Nov 1, 2025

Release note

For maintainers and optionally contributors, please refer to changelist's README on how to document this PR for the release notes.

Add the new experimental `--workers` option to `docstub run` to generate stub files
in parallel. This can reduce runtime significantly for projects with many files.
For now, multiprocessing has to be explicitly enabled by requesting a number of
workers.
{label="enhancement"}
Ensure that docstub still returns a non-zero exit code when it is run with output
completely disabled (`-qq`). The same applies when running docstub with 
`--quiet --fail-on-warnings`.
{label="fix"}

@lagru lagru added this to the v0.6 milestone Nov 1, 2025
@lagru lagru added enhancement New feature or functionality performance labels Nov 1, 2025
@lagru lagru merged commit 51d76ff into main Nov 3, 2025
8 checks passed
@lagru lagru deleted the multiprocessing branch November 3, 2025 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or functionality performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant