-
-
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
Should pylint
be equivalent to pylint .
?
#5701
Comments
To explain why I'm against this change:
I prefer the approach Benefits of this approach are that it would be non breaking (the behaviour would only change when |
@DanielNoord just to make sure I understand your suggestion:
This way when the user invoke |
Yes. If you specify the |
This is what I'm doing at the moment for pylint to work on my entire project: |
Looks like |
I'd support it, if I could figure out a way to exclude directories like |
There's an ignore option and ignore-patterns option. First search result for "pylint exclude directory" : https://stackoverflow.com/questions/2503717/. Please open a new issue to tell us how can we make the documentation better :) (Edit: #6471 needs to be fixed) |
@Pierre-Sassoulas actually the option you need is @yaleman Try |
I have a solution for this in #7496 that is non-breaking. Anybody who is looking for this feature is more than welcome to test it out and give feedback. This is crucial behaviour so I'm very wary of any backward incompatible changes, ironing those out before release is crucial. |
In absence of configuration, Another example is that PS. I maintain several linters. |
With 85% in favor (45 👍 , 8 👎 as of 2023-03-09 after this issue being pinned for 14 months), |
Moving milestone to 4.0.0 because we want to release a new version of pylint on time for python 3.12 release on 2023-10-02 and supporting python 3.12 in a 2.X branch is not reasonable. |
Current problem
Right now pylint is displaying the help if called without argument. We could also default to the current directory i.e.
pylint
would be equivalent topylint .
.Desired solution
If you want
pylint
to be equivalent topylint .
then react to this post with 👍, if not react with 👎. Most popular solution makes it to pylint 3.0.Additional context
Tools like
flake8
orpytest
default to current directory,mypy
orisort
do not.More generally, if a tool can work without argument like
ls
orpwd
it does, if it can't because it makes no sense without arguments then it shows the help likemv
, orscp
, so I'm personally in favor as I think linting the current directory make sense, but I did not find the rational for mypy or isort to not use the current directory as default.Original proposition done in #352 (comment), created because of #5682 (comment)
The text was updated successfully, but these errors were encountered: