-
-
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
FAQ: it *is* possible to run pylint automatically #9959
Labels
Documentation 📗
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Comments
edreamleo
added
the
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
label
Sep 24, 2024
Pierre-Sassoulas
added
Documentation 📗
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
and removed
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
labels
Sep 24, 2024
Thank you for opening the issue. We might add something to the tune of "unless a lot of work is done by your IDE to accommodate pylint", feel free to open a PR to modify the doc here: Lines 70 to 91 in 83cc31c
|
@Pierre-Sassoulas I'll give it a go. |
2 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Documentation 📗
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
This section of the FAQ is misleading.
Sure, running pylint on each keystroke is out of the question. But this Leo PR demonstrates that IDE's can lint files (in the background!) when Leo writes a changed file.
IDE code to run pylint in the background when saving changed files
Pylint output
Leo outputs pylint messages in Leo's log pane.
The user can click on the links to go to the correct Leo (outline) node.
Expected behavior
Revise these words in the FAQ:
I want to use pylint on each keystroke in my IDE, how can I do that ?
Don't do it: pylint's full suite of checks is not fast enough for that and never will be. pylint is best suited for linting on save for small projects, or for a continuous integration job or a git pre-push hook for big projects. The larger your repository is, the slower pylint will be.
If you want to make pylint faster for this type of use case, you can use the --errors-only option, which will remove all the refactor, convention, and warning checks. You can also disable checks with inherently high complexity that need to analyse the full code base like duplicate-code or cyclic-import (this list is not exhaustive).
Pylint version, platform, etc.
Not applicable.
The text was updated successfully, but these errors were encountered: