-
-
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
Disable messages based on linters already installed locally #3517
Comments
Hey @Pierre-Sassoulas Thank you for opening the issue. This is something that I don't agree in the suggested form. For personal projects I use both If this would be under a disabled-by-default flag, I wouldn't mind having it, but at this point it seems to me that we're trying to make The original issue for making pylint a bit more sane #746 suggested the addition of separate stages in which we could lump together various checks that are related via a given property (e.g. those that are a bit more advanced, but have a high yield of false positives can live under a particular stage that's not required for all users of |
Yeah I think the default needs to be very consensual and not have a single false positive. So a lot of things should be disabled by default. I think we have this discussion because the configuration/option code need a very huge refactor, it does not seem to even use argparse. What I propose here likely requires a huge amount of rework before being easy to do. Easier option with argparse and configuration inheritance would make it something like :
Being friendly is admitedly easier if it cost you only 7 line of code :D |
Something to consider is with tools like I think having overlapping responsibilities from using multiple linters in tandem is a symptom of the problem that people need multiple linters. Instead of playing nicely with other tools, As for linter-vs-style-formatter, my opinion would be that |
Good point, about |
As seen in #3512 we want to disable message that aren't useful to the user. We can imagine that when another linter is installed with the same set of feature the user is using it. The following linter comes to mind:
Describe the solution you'd like
When we see that a linter is installed (by trying to import it API) we do not execute some checks. This speed pylint up and make the warning shown more relevant. Most of the work in order to know what check exactly to disable was done by @AWhetter in #3512 (for example
bare-except
isW0702
in pylint, and E722 in flake8 so we can disableW0702
if flake8 is installed)We could add a warning to the user that some checks are automatically avoided and an option to disable the behavior. This feature would go well with default configurations.
The text was updated successfully, but these errors were encountered: