-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pylint 2.14 breaks tox.ini integration with the unrecognized-option error #6800
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
Comments
This is an issue with the assumption that any Perhaps we should special case @aneuway2 I don't use |
Hey @DanielNoord!
|
I'm wondering how this interacts with #4371 and what we did for |
Hi, it seems pylint is unable to read my setup.cfg altogether. ` Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00) $ pylint --version && pylint --rcfile=setup.cfg no_doc.py Your code has been rated at 10.00/10 $ cat setup.cfg ` |
This is another issue. Could you test if See https://docs.python.org/3/distutils/configfile.html. I based our support of |
Otherwise, the build warns on Sphinx 5.0.0, and warnings are treated as errors, so the docs build fails.
Ohhh, yes it worked. Thank you !! Shall I report this as a separate issue now that its not really that important? |
I think we'll keep this as being intentional for now. Unless we would get a lot of reports about this. Tools struggle a lot with parsing configuration files because of the lack of clear documentation for some of the older formats. Trying to enforce a bit of consistency makes both our own code a little simpler and helps the broader ecosystem by creating some "standards". |
Bug description
When running against Pylint version 2.14, Pylint complains with the
unrecognized-option
error when it attempts to read the tox.ini file, however these options are related to tox and not pylint.The issue also does not occur if I set the deps of the tox.ini to
pylint < 2.14
.I've reviewed the release notes and I don't believe there was any mention of changes to how a tox.ini file would need to be formated as the rc file,
Configuration
Command used
Pylint output
Expected behavior
pylint tests run within tox
Pylint version
OS / Environment
MacOS, iTerm2, Python 3.9
These tests also failed in our CI/CD environment using the
python:3.8
docker imageAdditional dependencies
pip freeze | grep tox
The text was updated successfully, but these errors were encountered: