summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntero Mejr <antero@mailbox.org>2023-03-11 13:39:45 +0000
committerLars-Dominik Braun <lars@6xq.net>2023-03-12 11:04:07 +0100
commita70b9fb319e7f8d64ea90e8f659dcf40a6b971b0 (patch)
treeb4767c764d9c33bfc3aed6847784799b9f774af4
parent831baaf81e57ce9d9053ba6f9e0653a2d27298c4 (diff)
downloadguix-a70b9fb319e7f8d64ea90e8f659dcf40a6b971b0.tar.gz
lint: Check that python-pre-commit is not an input.
pre-commit should never be a native-input of python packages, it's a
package manager for commit linting that is irrelevant to builds.

* guix/lint.scm (check-inputs-should-not-be-an-input-at-all): Add entry
for python-pre-commit.

Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
-rw-r--r--guix/lint.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/lint.scm b/guix/lint.scm
index 8e3976171f..17dcc23647 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -533,7 +533,8 @@ of a package, and INPUT-NAMES, a list of package specifications such as
   ;; Emit a warning if some inputs of PACKAGE are likely to should not be
   ;; an input at all.
   (let ((input-names '("python-setuptools"
-                       "python-pip")))
+                       "python-pip"
+                       "python-pre-commit")))
     (map (lambda (input)
            (make-warning
             package