leinardi / pylint-pycharm

A plugin providing both real-time and on-demand scanning of Python files with PyLint from within PyCharm/IDEA.
Apache License 2.0
196 stars 35 forks source link

Support configuration in pyproject.toml #70

Open colincadams opened 3 years ago

colincadams commented 3 years ago

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

Support for pyproject.toml was added to pylint in PyCQA/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 commented 2 years ago

+1

aav7fl commented 4 weeks ago

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',
]