-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Details about known caveats of using multiple processes in pre-commit #9463
Details about known caveats of using multiple processes in pre-commit #9463
Conversation
cba7038
to
12d5b4a
Compare
12d5b4a
to
14d653e
Compare
doc/user_guide/usage/run.rst
Outdated
You can also do you own parallelization by launching pylint multiple time on subsets | ||
of your files (like ``pre-commit`` with the default ``require_serial=false`` does). | ||
Be aware though pylint should analyses all your code at once in order to best infer | ||
the actual values that are passed in calls. If only some of the files are given pylint | ||
might miss a particular value's type and produce inferior inference for the subset. | ||
It can also be unexpectedly different when the file set changes because the new | ||
slicing can change the inference. So, don't do this if correctness and determinism is | ||
important to you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if -j
option is really better than a custom attempt at parallelization atm.
14d653e
to
1698065
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Helpful context to add.
Added some copyedits ;)
@@ -19,6 +37,7 @@ as follows: | |||
entry: pylint | |||
language: system | |||
types: [python] | |||
require_serial: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π
β¦tiple processes Refs microsoft/vscode-pylint#454 Also add known caveats for custom parallization. Closes pylint-dev#9341 Co-authored-by: Jacob Walls <[email protected]>
b91afe1
to
2b7100b
Compare
I can't believe how many mistakes would be in the doc if you weren't reviewing π₯² |
Type of Changes
Description
Closes #9341
Closes #9465
Also fix the release doc for something that bit me during 3.1.0 release.