-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Can read setup.cfg and pyproject.toml files #3169
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and straightforward patch, thanks @AWhetter !
@@ -0,0 +1,27 @@ | |||
************************** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for adding one!
pylint/__pkginfo__.py
Outdated
"astroid>=2.3.0,<2.4", | ||
"isort>=4.2.5,<5", | ||
"mccabe>=0.6,<0.7", | ||
"toml", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular version that we should require here?
1 similar comment
awesome, thank you! |
Pylint 2.5.0 and later support reading configuration from `pyproject.toml` or `setup.cfg` if `pylintrc` and `.pylintrc` do not exist. (pylint-dev/pylint#3169) In order to support these configuration files, use `pylint.lint.pylinter.PyLinter#read_config_file()` instead of `configparser.ConfigParser#read()` to read the pylint configuration. Signed-off-by: Kevin Locke <[email protected]>
Pylint 2.5.0 and later support reading configuration from `pyproject.toml` or `setup.cfg` if `pylintrc` and `.pylintrc` do not exist. (pylint-dev/pylint#3169) In order to support these configuration files, use `pylint.lint.pylinter.PyLinter#read_config_file()` instead of `configparser.ConfigParser#read()` to read the pylint configuration. Signed-off-by: Kevin Locke <[email protected]>
Pylint 2.5.0 and later support reading configuration from `pyproject.toml` or `setup.cfg` if `pylintrc` and `.pylintrc` do not exist. (pylint-dev/pylint#3169) In order to support these configuration files, use `pylint.lint.pylinter.PyLinter#read_config_file()` instead of `configparser.ConfigParser#read()` to read the pylint configuration. Signed-off-by: Kevin Locke <[email protected]>
Steps
doc/whatsnew/<current release.rst>
.Description
Configuration can be read from a setup.cfg or pyproject.toml file. See the documentation for exactly how.
Type of Changes
Related Issue
Closes #617