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


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

Vulture 0.20

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Jendrik Seipp <jendrikseipp@web.de>
Newsgroups comp.lang.python.announce
Subject Vulture 0.20
Date Wed, 26 Jul 2017 10:50:57 +0200
Lines 47
Approved python-announce-list@python.org
Message-ID <mailman.35.1501070621.3037.python-announce-list@python.org> (permalink)
References <c5038c4b-c388-9b06-a28c-f012314526ae@web.de>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de fdHdXy5ZH/VP7wjgIbvi4Audnfz3dAxqHln6OgIQBKnQ==
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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'url:github': 0.05; 'attributes': 0.07; 'rename': 0.07; 'python': 0.09; 'aliases': 0.09; 'imported': 0.09; 'imports': 0.09; 'tuple': 0.09; '2.7': 0.11; 'programs.': 0.13; 'syntax': 0.13; 'static': 0.15; 'variables': 0.15; 'assignments': 0.16; 'determining': 0.16; 'ellipses': 0.16; 'message-id:@web.de': 0.16; 'attribute': 0.18; 'output': 0.18; 'tests': 0.18; 'library': 0.20; 'variable': 0.20; 'cheers,': 0.22; '3.x': 0.22; 'names.': 0.22; 'code.': 0.23; 'helpful': 0.23; "python's": 0.24; 'fix': 0.24; 'module': 0.24; 'import': 0.26; 'header:User-Agent:1': 0.26; 'finds': 0.29; 'implicitly': 0.29; 'function': 0.30; 'code': 0.30; 'errors': 0.31; 'sets': 0.31; 'url:python': 0.31; 'reported': 0.33; 'skip:= 20': 0.33; 'tool': 0.34; 'run': 0.35; 'instead': 0.35; 'cleaning': 0.35; 'lists.': 0.35; 'item': 0.36; 'useful': 0.36; 'class': 0.36; 'file': 0.36; 'url:org': 0.36; 'store': 0.37; 'handle': 0.38; 'itself': 0.38; 'skip:- 10': 0.38; 'large': 0.38; 'some': 0.38; 'likely': 0.39; 'proto:https': 0.39; 'received:io': 0.39; 'received:psf.io': 0.39; 'to:addr:python.org': 0.39; 'received:ams1.psf.io': 0.40; 'received:mail1.ams1.psf.io': 0.40; 'called': 0.40; 'your': 0.61; 'charset:windows-1252': 0.62; 'news': 0.64; 'complete': 0.65; 'received:ch': 0.65; 'inherit': 0.66; 'to:addr:python-announce-list': 0.72; 'analysis': 0.73; 'miss': 0.77; 'whitelist': 0.84; 'quality.': 0.93
X-Virus-Scanned amavisd-new at unibas.ch
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
Content-Language de-CH
X-Mailman-Approved-At Wed, 26 Jul 2017 08:03:39 -0400
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.24
Precedence list
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>
X-Mailman-Original-Message-ID <c5038c4b-c388-9b06-a28c-f012314526ae@web.de>
Xref csiph.com comp.lang.python.announce:2579

Show key headers only | View raw


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.


Download
========
https://github.com/jendrikseipp/vulture
http://pypi.python.org/pypi/vulture


Features
========
* fast: static code analysis
* lightweight: only one module
* tested: tests itself and has complete test coverage
* complements pyflakes and has the same output syntax
* supports Python 2.6, 2.7 and 3.x


News
====

0.20 (2017-07-26)
-----------------
* Report unused tuple assignments as dead code.
* Report attribute names that have the same names as variables as dead code.
* Let Item class inherit from ``object`` (thanks @RJ722).
* Handle names imported as aliases like all other used variable names.
* Rename Vulture.used_vars to Vulture.used_names.
* Use function for determining which imports to ignore.
* Only try to import each whitelist file once.
* Store used names and used attributes in sets instead of lists.
* Fix estimating the size of code containing ellipses (...).
* Refactor and simplify code.


Cheers,
Jendrik

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


Thread

Vulture 0.20 Jendrik Seipp <jendrikseipp@web.de> - 2017-07-26 10:50 +0200

csiph-web