Skip to content
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

Support configuration in pyproject.toml #70

Open
colincadams opened this issue Jul 27, 2020 · 2 comments
Open

Support configuration in pyproject.toml #70

colincadams opened this issue Jul 27, 2020 · 2 comments

Comments

@colincadams
Copy link

Is your feature request related to a problem? Please describe.

Support for pyproject.toml was added to pylint in pylint-dev/pylint#3169. The plugin should support configuration from this file as well, instead of just from .pylintrc.

Describe the solution you'd like

The usable solution is likely to modify the "pylintrc" parameter to instead be "Configuration file" and have it support all configuration file types that pylint supports. Or to support all arguments that pylint supports there.

@blthayer
Copy link

+1

@aav7fl
Copy link

aav7fl commented Jun 12, 2024

This is a few years late, but this is currently supported in a non-intuitive way (at least on 0.16.2).

I changed my Pylint plugin setting (Path to pylintrc:) to point it to my pyproject.toml and deleted my .pylintrc file.

Now the Pylint plugin correctly picks up new configuration when I add to the .toml file.

image

Sample config that I added to my pyproject.tml that I tested with.

[tool.pylint.MAIN]
ignore-paths = [
  '^venv/.*$',
]
disable= [
  'too-many-locals',
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants