git: 6370609d8ee9 - main - devel/py-prospector: Add BANDIT, MYPY, PYRIGHT, PYROMA and VULTURE options

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 09 Mar 2024 14:13:07 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6370609d8ee94b62485f5aea9ee33d7a23438090

commit 6370609d8ee94b62485f5aea9ee33d7a23438090
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-03-09 13:48:24 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-03-09 14:06:02 +0000

    devel/py-prospector: Add BANDIT, MYPY, PYRIGHT, PYROMA and VULTURE options
    
    - Bump PORTREVISION for dependency change
---
 devel/py-prospector/Makefile | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/devel/py-prospector/Makefile b/devel/py-prospector/Makefile
index d1a00901ab6e..0b8b56cef419 100644
--- a/devel/py-prospector/Makefile
+++ b/devel/py-prospector/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	prospector
 PORTVERSION=	1.10.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -36,4 +36,18 @@ USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	BANDIT MYPY PYRIGHT PYROMA VULTURE
+OPTIONS_DEFAULT=BANDIT MYPY PYRIGHT PYROMA VULTURE
+BANDIT_DESC=	Optional tools via bandit
+MYPY_DESC=	Optional tools via mypy
+PYRIGHT_DESC=	Optional tools via pyright
+PYROMA_DESC=	Optional tools via pyroma
+VULTURE_DESC=	Optional tools via vulture
+
+BANDIT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bandit>=1.5.1:devel/py-bandit@${PY_FLAVOR}
+MYPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mypy>=0.600:devel/py-mypy@${PY_FLAVOR}
+PYRIGHT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyright>=1.1.3:devel/py-pyright@${PY_FLAVOR}
+PYROMA_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyroma>=2.4:devel/py-pyroma@${PY_FLAVOR}
+VULTURE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}vulture>=1.5:devel/py-vulture@${PY_FLAVOR}
+
 .include <bsd.port.mk>