From bc9903f6570f070da39870bf9f5510882d71b269 Mon Sep 17 00:00:00 2001 From: Matthew Elwin Date: Wed, 23 Apr 2025 16:11:45 -0500 Subject: gnu: Add python-flake8-builtins. * gnu/packages/python-xyz.scm (python-flake8-builtins): New variable. Change-Id: I1fe2b01f3e95b922ec2a7f48024a2a9ffd598894 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-check.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/python-check.scm') diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 2c794c1205e..33c3f49c00d 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2024 Markku Korkeala ;;; Copyright © 2025 Evgeny Pisemsky ;;; Copyright © 2025 Florent Pruvost +;;; Copyright © 2025 Matthew Elwin ;;; Copyright © 2025 Nicolas Graves ;;; ;;; This file is part of GNU Guix. @@ -650,6 +651,31 @@ the initial expected value of a test can be automatically set by running the test itself.") (license license:expat)))) +(define-public python-flake8-builtins + (package + (name "python-flake8-builtins") + (version "2.5.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "flake8_builtins" version)) + (sha256 + (base32 "19psav7pnqy3m5g4z1zah4ksbnk9bzx1jbbibs631xg44gc3vamx")))) + (build-system pyproject-build-system) + (arguments + (list #:test-flags #~(list "run_tests.py"))) + (native-inputs + (list python-hatchling + python-pytest)) + (propagated-inputs + (list python-flake8)) + (home-page "https://github.com/gforcada/flake8-builtins") + (synopsis "Check for python builtins being used as variables or parameters") + (description + "This package implements a functionality to check for python builtins +being used as variables or parameters.") + (license license:gpl2))) + (define-public python-gcovr (package (name "python-gcovr") -- cgit v1.3