From owner-svn-ports-all@freebsd.org Thu Dec 6 20:30:35 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3B921312179; Thu, 6 Dec 2018 20:30:35 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 65FFC7F15F; Thu, 6 Dec 2018 20:30:35 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 488E0BB5; Thu, 6 Dec 2018 20:30:35 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wB6KUZsH047088; Thu, 6 Dec 2018 20:30:35 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wB6KUYhb047085; Thu, 6 Dec 2018 20:30:34 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201812062030.wB6KUYhb047085@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Thu, 6 Dec 2018 20:30:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r486780 - in head/devel: . py-vulture X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . py-vulture X-SVN-Commit-Revision: 486780 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 65FFC7F15F X-Spamd-Result: default: False [-1.89 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.87)[-0.865,0]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-0.05)[-0.054,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 20:30:36 -0000 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 +# $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 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