pylint icon indicating copy to clipboard operation
pylint copied to clipboard

Allow setting PYLINT_HOME via pyproject.toml

Open woutervh opened this issue 1 year ago • 1 comments

Current problem

PYLINTHOME is actually cache-dir, but you can only set it via an environment-variable:

export PYLINTHOME="<path-to-project_dir>/var/cache/pylint"

while other tools like pytest and mypy allow to set their cache-dir in pyproject.toml like this:

[tool.mypy]
cache_dir = "var/cache/mypy"

[tool.pytest.ini_options]
cache_dir = "var/cache/pytest"

Desired solution

It would be nice if pylint could support something similar:

[tool.pylint]
pylint_home = "var/cache/pylint"

Additional context

No response

woutervh avatar Mar 12 '23 14:03 woutervh

I want the same thing actually. it'll make my life easier and less files floating around and every config files just in pyproject.toml and done with it

nh916 avatar Feb 01 '24 23:02 nh916