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 reading options from setup.cfg #210

Closed
psidex opened this issue Jun 10, 2020 · 1 comment
Closed

Support reading options from setup.cfg #210

psidex opened this issue Jun 10, 2020 · 1 comment

Comments

@psidex
Copy link

psidex commented Jun 10, 2020

From looking at multiple python tools (flake8, mypy, pytest, to name a few), the setup.cfg file seems to be one of the most widely supported for saving configurations.

The Python standard library contains configparser, so there is no need for any dependencies.

I imagine something like this:

[vulture]
exclude=*settings.py,docs/
ignore-names=foo*,ba[rz]
min-confidence=100

Or maybe [tool:vulture] instead?

And running it like this:

vulture --config-file ./setup.cfg ./myscript.py

I'm happy to attempt to implement it myself and create a pull request if you want me to 😄

@jendrikseipp
Copy link
Owner

We are already discussing adding support for pyproject.toml in #164. It seems pyproject.toml is the way forward for new tools, so I'd rather not add support for setup.cfg. A pull request for pyproject.toml support would be welcome :-)

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

2 participants