From nobody Wed Jun 19 03:36:51 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W3q6q63d9z5Nnkl; Wed, 19 Jun 2024 03:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W3q6q4PZ8z4t9c; Wed, 19 Jun 2024 03:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718768211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ArPApDCmZpTXfsl9fxKIaqNs/Sdssb9C4ufZE5nbThk=; b=OmagE7U9Hvyr6/l4MPE+F2TFnxbvYwFNsm+ymMZYYetTg+Sm/+7uenQBPoLewiwRxJ6w9f 59NoWuDF6AShXz2oQd0X35mcMF8X726QQBBrZ4xJbfEdXCy4D6SOa3WoQt7PsqUZkIMfSb Jp02Q1mAjXbdniOI44M1Nl22rDSW4Fkin5unphRMi4SrGS46mbhjViX/4GZqRpbaedPLic +IvDeXDk8TD0G4+b0LTTvc/Ex+GHl4UqEcYo/vxAKuhLyf3cw7ByBF50CazeXnHrHHSp78 NiyRatgcX5Ha70KGoByRBxKsvufEBm8JOdzc99GaODPiY4w5Psxbl5QWbISmaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718768211; a=rsa-sha256; cv=none; b=h2rue3AvPTEFUNyXITKKJnWBdK+sEX5buVXKkCZTKhBje38eKo3sNqXs56S7E6v734Pjyv BnNt787qjdimZtyEJm58YwFz7ZpStDVgMyoLLW67z2JXblS3Bk6CwCaM9rgl2gYAZ9aQtl IpMluZ6jIRKuPPLR3xpS+A178NlQbatXM3vvQT8Xo1SKxTWpyloIDv5s8mctWodj4FjnRq FDWfM2CteF0j6peAjCAdf/CglWHVBJ/maq5C14WyPd7prHGGstv/EIM6lZZAxGxXnngs50 u2VcZoiFqFGWSxdT2YJhCyNDYvNPFqa3/ZarpRU7e1Yj6I/X6wpJK8LUA0r3tw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718768211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ArPApDCmZpTXfsl9fxKIaqNs/Sdssb9C4ufZE5nbThk=; b=fg/VnrlwU9BWeKsF07hw7wgNqfGIwNLEr9QS/GfMb0jp+KlNpz8DgoeddOWzOgJCbqaPBP RKJQOeH3l9O7YoBYOeFs0Dl42OFDfdNO1uTnB0DawZETA6wpjMPpjqDZ0RdiWdwUX7b6Ew Exd5bbMX83X6NQ4POScdEqoVgTF0JE9pncZtAiXW/uIQu8vGd3wvEeAXQGZCxHeVYMR8Px Yhu/SYjipv1PMfwxGWwB/C0A3gaYuKnv9uHKh760UnxmHdSQtW84EQlcfZHHjkRZgFp/Jz IyqCNTYE8/t+plZWPcrBknDbGVUVQ2uUWnPb8gOI4CoTcJoRhhHQm7sptsjsSg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W3q6q3z9czR1d; Wed, 19 Jun 2024 03:36:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45J3apFb071408; Wed, 19 Jun 2024 03:36:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45J3apMo071405; Wed, 19 Jun 2024 03:36:51 GMT (envelope-from git) Date: Wed, 19 Jun 2024 03:36:51 GMT Message-Id: <202406190336.45J3apMo071405@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: cf3f032b07e7 - main - devel/py-pytest-ruff: New port: PyTest plugin to check ruff requirements List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cf3f032b07e7e538ef61829f16634099bbad223b Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=cf3f032b07e7e538ef61829f16634099bbad223b commit cf3f032b07e7e538ef61829f16634099bbad223b Author: Yuri Victorovich AuthorDate: 2024-06-19 03:01:48 +0000 Commit: Yuri Victorovich CommitDate: 2024-06-19 03:36:42 +0000 devel/py-pytest-ruff: New port: PyTest plugin to check ruff requirements --- devel/Makefile | 1 + devel/py-pytest-ruff/Makefile | 29 +++++++++++++++++++++++++++++ devel/py-pytest-ruff/distinfo | 3 +++ devel/py-pytest-ruff/pkg-descr | 4 ++++ 4 files changed, 37 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 25df53d1de4e..f3816fa3dd2f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5543,6 +5543,7 @@ SUBDIR += py-pytest-relaxed SUBDIR += py-pytest-remotedata SUBDIR += py-pytest-rerunfailures + SUBDIR += py-pytest-ruff SUBDIR += py-pytest-runner SUBDIR += py-pytest-services SUBDIR += py-pytest-shutil diff --git a/devel/py-pytest-ruff/Makefile b/devel/py-pytest-ruff/Makefile new file mode 100644 index 000000000000..24644fcf8815 --- /dev/null +++ b/devel/py-pytest-ruff/Makefile @@ -0,0 +1,29 @@ +PORTNAME= pytest-ruff +DISTVERSION= 0.3.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= PyTest plugin to check ruff requirements +WWW= https://github.com/businho/pytest-ruff + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}poetry-dynamic-versioning>0:devel/py-poetry-dynamic-versioning@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=5:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ruff>=0.0.242:devel/py-ruff@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>=4.1.0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-mock>=3.10.0:devel/py-pytest-mock@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist concurrent pytest + +TEST_ENV= PYTHONPATH=${WRKSRC}/src + +NO_ARCH= yes + +.include diff --git a/devel/py-pytest-ruff/distinfo b/devel/py-pytest-ruff/distinfo new file mode 100644 index 000000000000..4e331e8f974b --- /dev/null +++ b/devel/py-pytest-ruff/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1718743476 +SHA256 (pytest_ruff-0.3.2.tar.gz) = 8d82882969e52b664a7cef4465cba63e45173f38d907dffeca41d9672f59b6c6 +SIZE (pytest_ruff-0.3.2.tar.gz) = 3881 diff --git a/devel/py-pytest-ruff/pkg-descr b/devel/py-pytest-ruff/pkg-descr new file mode 100644 index 000000000000..e566b26cd3e2 --- /dev/null +++ b/devel/py-pytest-ruff/pkg-descr @@ -0,0 +1,4 @@ +The pytest-ruff plugin will run one ruff check test per file and fail if code +is not ok for ruff. + +Format command only checks for format and fails for formatting errors.