git: 1c59fc3d7108 - main - devel/py-flake8-black: Add py-flake8-black 0.3.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 11 Jul 2022 13:52:55 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1c59fc3d710827aad358aa6a5830f98788f847d9

commit 1c59fc3d710827aad358aa6a5830f98788f847d9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-07-11 13:48:46 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-07-11 13:48:46 +0000

    devel/py-flake8-black: Add py-flake8-black 0.3.3
    
    flake8-black is an MIT licensed flake8 plugin for validating Python code style
    with the command line code formatting tool black.
    
    Black, "The Uncompromising Code Formatter", is normally run to edit your Python
    code in place to match their coding style, a strict subset of the PEP 8 style
    guide.
    
    The point of this plugin is to be able to run black --check ... from within the
    flake8 plugin ecosystem. You might use this via a git pre-commit hook, or as
    part of your continuous integration testing.
    
    WWW: https://github.com/peterjc/flake8-black
---
 devel/Makefile                  |  1 +
 devel/py-flake8-black/Makefile  | 24 ++++++++++++++++++++++++
 devel/py-flake8-black/distinfo  |  3 +++
 devel/py-flake8-black/pkg-descr | 12 ++++++++++++
 4 files changed, 40 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 749534a07bb4..347cb84158ee 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4484,6 +4484,7 @@
     SUBDIR += py-five.globalrequest
     SUBDIR += py-fixtures
     SUBDIR += py-flake8
+    SUBDIR += py-flake8-black
     SUBDIR += py-flake8-bugbear
     SUBDIR += py-flake8-builtins
     SUBDIR += py-flake8-docstrings
diff --git a/devel/py-flake8-black/Makefile b/devel/py-flake8-black/Makefile
new file mode 100644
index 000000000000..1725bfca304e
--- /dev/null
+++ b/devel/py-flake8-black/Makefile
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	flake8-black
+PORTVERSION=	0.3.3
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	flake8 plugin to call black as a code style validator
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}black>=22.1.0:devel/py-black@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flake8>=3.0.0:devel/py-flake8@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-flake8-black/distinfo b/devel/py-flake8-black/distinfo
new file mode 100644
index 000000000000..123b270ab486
--- /dev/null
+++ b/devel/py-flake8-black/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1657292468
+SHA256 (flake8-black-0.3.3.tar.gz) = 8211f5e20e954cb57c709acccf2f3281ce27016d4c4b989c3e51f878bb7ce12a
+SIZE (flake8-black-0.3.3.tar.gz) = 14635
diff --git a/devel/py-flake8-black/pkg-descr b/devel/py-flake8-black/pkg-descr
new file mode 100644
index 000000000000..27536778f13b
--- /dev/null
+++ b/devel/py-flake8-black/pkg-descr
@@ -0,0 +1,12 @@
+flake8-black is an MIT licensed flake8 plugin for validating Python code style
+with the command line code formatting tool black.
+
+Black, "The Uncompromising Code Formatter", is normally run to edit your Python
+code in place to match their coding style, a strict subset of the PEP 8 style
+guide.
+
+The point of this plugin is to be able to run black --check ... from within the
+flake8 plugin ecosystem. You might use this via a git pre-commit hook, or as
+part of your continuous integration testing.
+
+WWW: https://github.com/peterjc/flake8-black