Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #1383

Vulture 0.6 released

Date 2014-09-07 23:50 +0200
From Jendrik Seipp <jendrikseipp@web.de>
Subject Vulture 0.6 released
Newsgroups comp.lang.python.announce
Message-ID <mailman.13864.1410165886.18130.python-announce-list@python.org> (permalink)

Show all headers | View raw


vulture - Find dead code
========================

vulture finds unused classes, functions and variables in Python code. 
This helps you cleanup and find errors in your programs. If you run it 
on both your library and test suite you can find untested code.

Due to Python's dynamic nature it is impossible to find all dead code 
for a static code analyzer like vulture, because it ignores scopes and 
scans only token names. Additionally some dynamic items that are not 
explicitly mentioned in the code may be incorrectly reported as dead code.


Download
========
http://pypi.python.org/pypi/vulture


Features
========
- Fast: Uses static code analysis
- Lightweight: Only one module
- Complements pyflakes and has the same output syntax
- Supports Python 2.6, 2.7 and 3.x


News
====
* Ignore function names starting with "test_".
* Parse variable names in new format strings (e.g. "This is 
{x}".format(x="nice")).
* Only parse alphanumeric variable names in format strings and ignore types.
* Abort with exit code 1 on syntax errors.
* Support installation under Windows by using setuptools (thanks Reuben 
Fletcher-Costin).


Cheers,
Jendrik




Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

Vulture 0.6 released Jendrik Seipp <jendrikseipp@web.de> - 2014-09-07 23:50 +0200

csiph-web