-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
pylint not finding the tox.ini config #9727
Comments
Hi! I don’t know for certain what is going on but the docs also say that without the rcfile option, Pylint will use the first configuration file it can find, based on a specific order mentioned in same doc page. |
Need to verify when not on mobile but it could be because the config needs to be [pylint.main] |
I've checked options 1-5 from doc by putting dummy files and the config file is detected properly. I skipped
So I assume it is not able to detect Also, I tried
pylint . I also tried with dummy setup.cfg where I just copied tox.ini as setup.cfg and the result was the same.
|
Thanks @rlalik for the details. Makes perfect sense and I see what is missing from the code now. PR coming. |
…red and it exists in the current directory. Closes pylint-dev#9727
I think you still might have issuie with
By looking at your PR it seems that is not fixing it. |
I can't reproduce that unfortunately. Does your tox.ini have a valid configuration section ( |
So unless |
I see the problem - |
So, is it something else than in this line:
|
And it works with |
And it says the same for e.g.
|
Thanks again @rlalik. Good feedback. |
Bug description
According to documentation: https://pylint.readthedocs.io/en/v3.2.3/user_guide/usage/run.html
pylint
should be able to findtox.ini
and use configuration from it.In my case however it is not doing it. It works if I explicitely ask to use tox.ini with
--rcfile
.Configuration
Command used
Pylint output
Expected behavior
Same as using with
--rcfile
:Pylint version
OS / Environment
Gentoo
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: