1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add py-vulture 1.0

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

WWW: https://github.com/jendrikseipp/vulture
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-12-06 20:30:34 +00:00
parent 1271a1a87a
commit 5f8ce32843
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=486780
4 changed files with 45 additions and 0 deletions

View File

@ -5226,6 +5226,7 @@
SUBDIR += py-virtualenvwrapper
SUBDIR += py-visitor
SUBDIR += py-voluptuous
SUBDIR += py-vulture
SUBDIR += py-warlock
SUBDIR += py-watchdog
SUBDIR += py-wcwidth

24
devel/py-vulture/Makefile Normal file
View File

@ -0,0 +1,24 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= vulture
PORTVERSION= 1.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Find dead code in Python programs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1544124100
SHA256 (vulture-1.0.tar.gz) = 4b5a8980c338e9c068d43e7164555a1e4c9c7d84961ce2bc6f3ed975f6e5bc9d
SIZE (vulture-1.0.tar.gz) = 31690

View File

@ -0,0 +1,17 @@
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
- supports Python 2.7 and Python >= 3.4
WWW: https://github.com/jendrikseipp/vulture