commit 1b5666a0650e6e0fb362ea97d5d1e4e4f1cc0f35 Author: Goran Mekić Date: Sat Dec 21 04:31:31 2019 +0100 Add pytest-pep8 diff --git a/devel/Makefile b/devel/Makefile index 61ae360e8d59..ee8ce39acdaf 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4905,6 +4905,7 @@ SUBDIR += py-pytest-isort SUBDIR += py-pytest-localserver SUBDIR += py-pytest-mock + SUBDIR += py-pytest-pep8 SUBDIR += py-pytest-pycodestyle SUBDIR += py-pytest-relaxed SUBDIR += py-pytest-rerunfailures diff --git a/devel/py-pytest-pep8/Makefile b/devel/py-pytest-pep8/Makefile new file mode 100644 index 000000000000..03a92c0991f4 --- /dev/null +++ b/devel/py-pytest-pep8/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= pytest-pep8 +PORTVERSION= 1.0.6 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= meka@tilda.center +COMMENT= Pytest plugin for efficiently checking PEP8 compliance + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cache>=0:devel/py-pytest-cache@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pep8>=0:devel/pep8@${PY_FLAVOR} + +USES= python:3.5+ +USE_PYTHON= autoplist concurrent distutils + +TEST_ENV= PYTHONPATH=${WRKSRC}/src + +NO_ARCH= yes + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= \ + -k 'not test_strict \ + and not test_ok_verbose \ + and not test_mtime_caching \ + and not test_w293w292' + +.include diff --git a/devel/py-pytest-pep8/distinfo b/devel/py-pytest-pep8/distinfo new file mode 100644 index 000000000000..630ae17b20d7 --- /dev/null +++ b/devel/py-pytest-pep8/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1576898226 +SHA256 (pytest-pep8-1.0.6.tar.gz) = 032ef7e5fa3ac30f4458c73e05bb67b0f036a8a5cb418a534b3170f89f120318 +SIZE (pytest-pep8-1.0.6.tar.gz) = 7271 diff --git a/devel/py-pytest-pep8/pkg-descr b/devel/py-pytest-pep8/pkg-descr new file mode 100644 index 000000000000..86cc874e0c19 --- /dev/null +++ b/devel/py-pytest-pep8/pkg-descr @@ -0,0 +1,4 @@ +This plugin allows to configure on a per-project and per-file basis which +errors or warnings to care about. + +WWW: https://bitbucket.org/pytest-dev/pytest-pep8