From patchwork Sat Jul 20 11:09:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 29422 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 535FB27BBE9; Sat, 20 Jul 2024 12:11:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DF1F827BBE2 for ; Sat, 20 Jul 2024 12:11:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sV7zW-00028H-QX; Sat, 20 Jul 2024 07:11:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sV7zS-000285-9q for guix-patches@gnu.org; Sat, 20 Jul 2024 07:11:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sV7zS-0001MN-22 for guix-patches@gnu.org; Sat, 20 Jul 2024 07:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sV7zS-0004sd-0T for guix-patches@gnu.org; Sat, 20 Jul 2024 07:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72206] [PATCH] lint: check-inputs-should-not-be-an-input-at-all: Add more packages. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jul 2024 11:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72206 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72206@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172147385118740 (code B ref -1); Sat, 20 Jul 2024 11:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jul 2024 11:10:51 +0000 Received: from localhost ([127.0.0.1]:51885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sV7zG-0004sB-ML for submit@debbugs.gnu.org; Sat, 20 Jul 2024 07:10:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:44890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sV7zE-0004ry-6R for submit@debbugs.gnu.org; Sat, 20 Jul 2024 07:10:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sV7zC-00027U-Im for guix-patches@gnu.org; Sat, 20 Jul 2024 07:10:47 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sV7zB-0001KO-1e for guix-patches@gnu.org; Sat, 20 Jul 2024 07:10:46 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8F78F240027 for ; Sat, 20 Jul 2024 13:10:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1721473838; bh=CTe7Hcksy7QSZ/QmV0L+KHm6Q1aLDrsTAsp+qdNX3l0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=HUkqlfcyOkoJcwRGcvwbBxJvt/qyKbL7KTCgnL/orDjQ4r+OvwucTuNVt2sAWU/RQ nkzCJTLV6RN+aoS2NYc8ayNaTwAmWFc7KOwzT+72pnJ4Z0C3Q3//GhBHPLQObrx8M4 41BqbuzKiPWruQTT0d9tMAH6n+VWHQnDdCnPbUFK5FVgsKgtvnSAs8zEPtyooAEok/ sJKghPcea8SEYEELR1UTxQd85XVWUlD3V8L+PY6SZL1AHTntIJUWptQfRSs8mBk6AR iGQ2EMnnwTjtyGcWcPwWFPuKzLZvLn2N04SnyYMcnWbxHUX/8I0FaLZs9bQojGC0hO qXS3gRnfWeKEQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WR3k53TZXz6tm8; Sat, 20 Jul 2024 13:10:37 +0200 (CEST) From: Vinicius Monego Date: Sat, 20 Jul 2024 11:09:31 +0000 Message-Id: MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * guix.lint.scm (check-inputs-should-not-be-an-input-at-all): Add python-black, python-coverage, python-flake8, python-mypy, python-pycodestyle, python-pyflakes, python-pylint, python-pytest-cov, python-yapf. Change-Id: I4e7071f21b84313a117c4487d5977adbb91efe92 --- There are several flake8 extensions too which could be added. guix/lint.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) base-commit: 9df5289c6687cd5688c275d16417389fbab6d384 diff --git a/guix/lint.scm b/guix/lint.scm index 7612832a5a..49e9b73676 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -586,9 +586,18 @@ (define (check-inputs-should-be-native package) (define (check-inputs-should-not-be-an-input-at-all package) ;; Emit a warning if some inputs of PACKAGE are likely to should not be ;; an input at all. - (let ((input-names '("python-setuptools" + (let ((input-names '("python-black" + "python-coverage" + "python-flake8" + "python-mypy" "python-pip" - "python-pre-commit"))) + "python-pre-commit" + "python-pycodestyle" + "python-pyflakes" + "python-pylint" + "python-pytest-cov" + "python-setuptools" + "python-yapf"))) (map (lambda (input) (make-warning package