-
Notifications
You must be signed in to change notification settings - Fork 174
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
Vulture configuration in pyproject.toml ignored #505
Comments
Similar issue encountered with e.g.
Isn't picked-up... |
hi guys, any news on this? |
Same here on Python 3.10, |
This is a "did you try to restart?" comment, so please don't be offended. I was troubleshooting the same error the OP has for an hour or so when I realized, that there was a stray |
But this ticket isn't about pylint? |
@noctuid I think the point Teagum is making is that if prospector is picking up vulture-specific config first somewhere else, it'll ignore the pyproject.toml stuff, so check in case you have any leftovers from previous configuration in case that will fix it. Regarding this bug I'm sorry that it escaped my notice, I'll try to get around to dealing with it properly, been a bit busy with life... If you want to have a go yourself and create a PR that'd be great, have a look here to start : https://github.com/landscapeio/prospector/blob/master/prospector/tools/vulture/__init__.py#L68 |
Describe the bug
Similar to #485 (which was not fixed for me on 1.7.6), vulture configuration in the pyproject.toml file is ignored.
To Reproduce
Run
poetry run prospector
in a project with a pyproject.toml that has vulture configuration (e.g.ignore-decorators
configuration for@app.get
,@app.post
, etc.). I get vulture warnings about unused functions from prospector even thoughpoetry run vulture <file>
gives no warnings.Expected behavior
Prospector should use any vulture configuration in the pyproject.toml.
Environment
The text was updated successfully, but these errors were encountered: