svn commit: r486780 - in head/devel: . py-vulture
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Dec 6 20:30:36 UTC 2018
Author: sunpoet
Date: Thu Dec 6 20:30:34 2018
New Revision: 486780
URL: https://svnweb.freebsd.org/changeset/ports/486780
Log:
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
Added:
head/devel/py-vulture/
head/devel/py-vulture/Makefile (contents, props changed)
head/devel/py-vulture/distinfo (contents, props changed)
head/devel/py-vulture/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Thu Dec 6 20:11:21 2018 (r486779)
+++ head/devel/Makefile Thu Dec 6 20:30:34 2018 (r486780)
@@ -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
Added: head/devel/py-vulture/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-vulture/Makefile Thu Dec 6 20:30:34 2018 (r486780)
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= vulture
+PORTVERSION= 1.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet at 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>
Added: head/devel/py-vulture/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-vulture/distinfo Thu Dec 6 20:30:34 2018 (r486780)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1544124100
+SHA256 (vulture-1.0.tar.gz) = 4b5a8980c338e9c068d43e7164555a1e4c9c7d84961ce2bc6f3ed975f6e5bc9d
+SIZE (vulture-1.0.tar.gz) = 31690
Added: head/devel/py-vulture/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-vulture/pkg-descr Thu Dec 6 20:30:34 2018 (r486780)
@@ -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
More information about the svn-ports-all
mailing list