Import flake8.

A modular python code checker wrapping tools such as pyflakes, pep8 and McCabe for complexity checks.

from Bertrand Janin, ok sthen@
This commit is contained in:
benoit 2014-11-18 12:10:58 +00:00
parent 3b7694958f
commit b798d1af31
4 changed files with 71 additions and 0 deletions

33
devel/flake8/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/11/18 12:10:58 benoit Exp $
COMMENT = modular python code checker wrapping pep8 and pyflakes
MODPY_EGG_VERSION = 2.2.5
DISTNAME = flake8-${MODPY_EGG_VERSION}
CATEGORIES = devel
HOMEPAGE = https://bitbucket.org/tarek/flake8/
MAINTAINER = Bertrand Janin <b@janin.com>
# MIT
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${MASTER_SITE_PYPI:=f/flake8/}
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
TEST_DEPENDS = devel/py-unittest2 \
devel/py-mock
RUN_DEPENDS = devel/pep8 \
devel/py-mccabe \
devel/pyflakes
do-test:
cd ${WRKSRC} && unit2 discover
.include <bsd.port.mk>

2
devel/flake8/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (flake8-2.2.5.tar.gz) = KF6L1zDAtv374jwy0pNr/7pAHyPKsTLocixovoDW8YI=
SIZE (flake8-2.2.5.tar.gz) = 28333

3
devel/flake8/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
Flake8 is a wrapper around python code checker tools such as
PyFlakes, pep8 and Ned Batchelder's McCabe script. It displays
the warnings in a per-file, merged output and is configurable.

33
devel/flake8/pkg/PLIST Normal file
View File

@ -0,0 +1,33 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/11/18 12:10:58 benoit Exp $
bin/flake8
lib/python${MODPY_VERSION}/site-packages/flake8/
lib/python${MODPY_VERSION}/site-packages/flake8-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/flake8-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/flake8-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/flake8-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/flake8-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/flake8-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/flake8-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/flake8/__init__.py
lib/python${MODPY_VERSION}/site-packages/flake8/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/__main__.py
lib/python${MODPY_VERSION}/site-packages/flake8/__main__.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/_pyflakes.py
lib/python${MODPY_VERSION}/site-packages/flake8/_pyflakes.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/engine.py
lib/python${MODPY_VERSION}/site-packages/flake8/engine.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/hooks.py
lib/python${MODPY_VERSION}/site-packages/flake8/hooks.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/main.py
lib/python${MODPY_VERSION}/site-packages/flake8/main.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/reporter.py
lib/python${MODPY_VERSION}/site-packages/flake8/reporter.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/run.py
lib/python${MODPY_VERSION}/site-packages/flake8/run.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/tests/
lib/python${MODPY_VERSION}/site-packages/flake8/tests/__init__.py
lib/python${MODPY_VERSION}/site-packages/flake8/tests/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/tests/test_engine.py
lib/python${MODPY_VERSION}/site-packages/flake8/tests/test_engine.pyc
lib/python${MODPY_VERSION}/site-packages/flake8/util.py
lib/python${MODPY_VERSION}/site-packages/flake8/util.pyc