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


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

Vulture 0.6 released

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jendrikseipp@web.de>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; '"this': 0.03; 'static': 0.04; 'syntax': 0.04; 'classes,': 0.05; 'explicitly': 0.05; 'output': 0.05; 'received:192.168.178': 0.07; 'subject:released': 0.07; 'variables': 0.07; 'additionally': 0.09; 'cleanup': 0.09; 'exit': 0.09; 'python': 0.11; '2.7': 0.14; 'programs.': 0.14; 'windows': 0.15; 'abort': 0.16; 'finds': 0.16; 'message-id:@web.de': 0.16; 'scopes': 0.16; 'setuptools': 0.16; 'to:addr:python-announce-list': 0.16; 'ignore': 0.16; 'code.': 0.18; 'library': 0.18; 'variable': 0.18; 'module': 0.19; "python's": 0.19; 'installation': 0.23; 'header:User-Agent:1': 0.23; 'errors.': 0.24; 'parse': 0.24; 'skip:{ 20': 0.24; 'cheers,': 0.24; 'function': 0.29; 'errors': 0.30; 'nature': 0.30; 'code': 0.31; '3.x': 0.31; 'names.': 0.31; 'skip:= 20': 0.31; 'types.': 0.31; 'run': 0.32; 'url:python': 0.33; '(e.g.': 0.33; 'test': 0.35; 'url:org': 0.36; 'starting': 0.37; 'reported': 0.39; 'to:addr:python.org': 0.39; 'helps': 0.61; 'mentioned': 0.61; 'new': 0.61; 'charset:windows-1252': 0.65; 'due': 0.66; 'news': 0.67; 'alphanumeric': 0.68; 'analysis': 0.75
X-Virus-Scanned amavisd-new at unibas.ch
Date Sun, 07 Sep 2014 23:50:26 +0200
From Jendrik Seipp <jendrikseipp@web.de>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version 1.0
To python-announce-list@python.org
Subject Vulture 0.6 released
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Mailman-Approved-At Mon, 08 Sep 2014 10:44:45 +0200
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To python-list@python.org
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Newsgroups comp.lang.python.announce
Message-ID <mailman.13864.1410165886.18130.python-announce-list@python.org> (permalink)
Lines 44
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1410165886 news.xs4all.nl 2931 [2001:888:2000:d::a6]:50205
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python.announce:1383

Show key headers only | 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