Vulture 0.28

Jendrik Seipp jendrikseipp at
Thu Jul 5 07:56:25 EDT 2018

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.


* 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``
* supports Python 2.7 and Python >= 3.4

* Add ``--make-whitelist`` flag for reporting output in whitelist format 
(thanks @RJ722).
* Ignore case of ``--exclude`` arguments on Windows.
* Add ``*`` to recognized test file patterns.
* Add ``failureException``, ``longMessage`` and ``maxDiff`` to 
``unittest`` whitelist.
* Refer to actual objects rather than their mocks in default whitelists 
(thanks @RJ722).
* Don't import any Vulture modules in (thanks @RJ722).


More information about the Python-announce-list mailing list