Vulture: Find Dead Python Code
github.com
github.com
It seems like people build giant whitelists when using it with Flask, Django, and other frameworks. Given the volume of false positives, it seems like a maintenance burden to me.
Maybe there's some trick to using it effectively, but it's not obvious to me.
With that said, lately I’ve had issues using vulture on larger projects with various errors, so hopefully they’ll continue to develop it and address those.
https://analysis-tools.dev/tag/python https://github.com/collab-qa/check-all-the-things/blob/maste...
Definitely a cool idea though, but a little underwhelming when all it found for me was a bunch of unused variables (the boilerplate context manager arguments). And this is a fairly large Python codebase it was running over.
Note that this problem is generally undecidable, so no tool will ever find all dead/non-dead code accurately.