Find unused Python code before cleanup refactors with Vulture
Run a dead-code pass on Python repositories before refactors so agents can flag unused functions, classes, imports, and variables instead of deleting blindly.
What it does
Find unused Python code before cleanup refactors with Vulture
Run a dead-code pass on Python repositories before refactors so agents can flag unused functions, classes, imports, and variables instead of deleting blindly.
Prerequisites
Python 3, pip, Vulture CLI
Installation
Use the upstream install or setup path that matches your environment:
- $ pip install vulture
- make some modifications.
- make it harder to read.
Requirements and caveats from upstream:
- Vulture finds unused code in Python programs. This is useful for
- Due to Python's dynamic nature, static code analyzers like Vulture are
Basic usage or getting-started notes:
-
cleaning up and finding errors in large code bases. If you run Vulture
-
$ vulture myscript.py # or
-
$ python3 -m vulture myscript.py
-
Extracted from upstream docs: https://raw.githubusercontent.com/jendrikseipp/vulture/HEAD/README.md
Documentation
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,245 chars)