{"repo":"jendrikseipp/vulture","free":true,"listed":false,"github":"https://github.com/jendrikseipp/vulture","clone":"git clone https://github.com/jendrikseipp/vulture.git","description":"Find dead Python code","language":"Python","stars":4766,"topics":["python","dead-code-removal"],"license":"MIT","category":"dev-tools","readme_excerpt":"Vulture - Find dead code Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture on both your library and test suite you can find untested code. Due to Python's dynamic nature, static code analyzers like Vulture are likely to miss some dead code. Also, code that is only called implicitly may be reported as unused. Nonetheless, Vulture can be a very helpful tool for higher code quality. Features fast: uses static code analysis tested: tests itself and has complete test coverage complements pyflakes and has the same output syntax sorts unused classes and functions by size with --sort-by-size Installation $ pip install vulture Usage $ vulture myscript.py # or $ python3 -m vulture myscript.py $ vulture myscript.py mypackage/ $ vulture myscript.py --min-confidence 100 # Only report 100% dead code. The provided arguments may be Python files or directories. For each directory Vulture analyzes all contained \\ .py files. After you have found and deleted dead code, run Vulture again, because it may discover more dead code. Types of unused code In addition to finding unused functions, classes, etc., Vulture can detect unreachable code. Each chunk of dead code is assigned a confidence value between 60% and 100%, where a value of 100% signals that it is certain that the code won't be executed. Values below 100% are very rough estimates (based on the type of code chunk) for how likely it is that the code is unu","default_branch":null,"files":null,"tree":[],"storefront":"/r/jendrikseipp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jendrikseipp/vulture/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}