git: 28fd87075c66 - main - devel/cython-lint: Add cython-lint 0.16.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Sep 2024 04:25:26 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=28fd87075c66594b7f635fb36337d70d5cdbb233 commit 28fd87075c66594b7f635fb36337d70d5cdbb233 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-09-25 04:11:44 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-09-25 04:22:24 +0000 devel/cython-lint: Add cython-lint 0.16.2 cython-lint provides everything flake8 used to do (by accident), plus much more. cython-lint is a tool and pre-commit hook to lint Cython files. --- devel/Makefile | 1 + devel/cython-lint/Makefile | 25 +++++++++++++++++++++++++ devel/cython-lint/distinfo | 3 +++ devel/cython-lint/pkg-descr | 3 +++ 4 files changed, 32 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 4cd47144d90f..72fb4d4dac02 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -546,6 +546,7 @@ SUBDIR += cxxopts SUBDIR += cxxtest SUBDIR += cxxtools + SUBDIR += cython-lint SUBDIR += d-feet SUBDIR += d-scanner SUBDIR += d-spy diff --git a/devel/cython-lint/Makefile b/devel/cython-lint/Makefile new file mode 100644 index 000000000000..05de9d12245c --- /dev/null +++ b/devel/cython-lint/Makefile @@ -0,0 +1,25 @@ +PORTNAME= cython-lint +PORTVERSION= 0.16.2 +CATEGORIES= devel python +MASTER_SITES= PYPI \ + https://github.com/MarcoGorelli/cython-lint/releases/download/v${PORTVERSION}/ +DISTNAME= cython_lint-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Lint Cython files +WWW= https://github.com/MarcoGorelli/cython-lint + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycodestyle>=0:devel/py-pycodestyle@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tokenize-rt>=3.2.0:devel/py-tokenize-rt@${PY_FLAVOR} \ + ${PY_TOMLI} + +USES= python +USE_PYTHON= autoplist cython_run noflavors pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/cython-lint/distinfo b/devel/cython-lint/distinfo new file mode 100644 index 000000000000..2c859f308408 --- /dev/null +++ b/devel/cython-lint/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1726740913 +SHA256 (cython_lint-0.16.2.tar.gz) = 61a0dd24009af14e86df67bf38dd4e4aeeb511ceaaf6af0dbd4dcccffd76149e +SIZE (cython_lint-0.16.2.tar.gz) = 26360 diff --git a/devel/cython-lint/pkg-descr b/devel/cython-lint/pkg-descr new file mode 100644 index 000000000000..efac253d82a9 --- /dev/null +++ b/devel/cython-lint/pkg-descr @@ -0,0 +1,3 @@ +cython-lint provides everything flake8 used to do (by accident), plus much more. + +cython-lint is a tool and pre-commit hook to lint Cython files.