From patchwork Fri Feb 11 20:23:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1591818 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=c0VmupSS; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JwQ7z25RPz9s8q for ; Sat, 12 Feb 2022 07:24:31 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4871783BD5; Fri, 11 Feb 2022 21:23:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="c0VmupSS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 96CC283BCD; Fri, 11 Feb 2022 21:23:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B4A3F83BA8 for ; Fri, 11 Feb 2022 21:23:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2e.google.com with SMTP id m185so12792528iof.10 for ; Fri, 11 Feb 2022 12:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=raVrzzeqCVQgFJdDim0TMVsreSo0SwXZF8m7ycGa1Gg=; b=c0VmupSSFx0wcb+XtDqpy6I9WlUZ/I+WN6j4CaL9E028gi+rjfyv78eMx+L+MGlQq/ gp1m5WaonR+HU62bMYJasvn+9is5JD5Sn5yVqleh/tJ4W2v/2JTDsRQlhJVOC324uF4N Iue4s1Idi0GrdRC8Sh0PPIN8rNsJxUSmnILz8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=raVrzzeqCVQgFJdDim0TMVsreSo0SwXZF8m7ycGa1Gg=; b=2SKW1WaA4CHsZUNU4dEQg5JpVHJ/V4EjwIXoeJcMVfGols6L8MQsPL7Giqcqz11srb t10MyNMTyM29LJ/t89fzFafivWJpmvTrz4MRddllFyVol9wgeo2K9GX1x+15XVl8QEBs 8X6YbO30Xt8nuF/kodsDv41/cZQVjk7e4JDJ/FyuQg8trhPVhkXGAV96VdWGj0qzrk3A NIauOPrvzH/KuXxK8R6KbmgBQ0rjNhesuN/V8l3PNof9YWFv8PLUfChgRi4kBNpc4SwM OBaGVH6UiGAbXcVrso+WIu4qZUbmJjTE58SYkt91FT0T8VbkmfFL5EvU0wtunbSA9J8h bt/w== X-Gm-Message-State: AOAM530h7mvgeL/J4zb2k/7x9xNHpeQ9sbkI8PHig4bX1rmRFejGFjOe fnL7ZM50stQfeABPJwZVwNundyGYUAQ5pg== X-Google-Smtp-Source: ABdhPJyFrDQ5ShGUHf3lka9hH4cC+skl9FwVXsHwd/f7aOleznM/7/JWMUOR1wSIabgtJgzMKTyHjw== X-Received: by 2002:a05:6638:3399:: with SMTP id h25mr1794021jav.166.1644611019338; Fri, 11 Feb 2022 12:23:39 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id t2sm9496071ilp.49.2022.02.11.12.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 12:23:39 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , =?utf-8?q?Marek_Beh=C3=BAn?= , Masahiro Yamada Subject: [PATCH 7/9] Makefile: Add a way to check for pylint errors Date: Fri, 11 Feb 2022 13:23:24 -0700 Message-Id: <20220211202327.851395-8-sjg@chromium.org> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog In-Reply-To: <20220211202327.851395-1-sjg@chromium.org> References: <20220211202327.851395-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Add a new 'pylint_err' target which only reports errors, not warnings. Signed-off-by: Simon Glass --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1ee7089c52..97e597ed43 100644 --- a/Makefile +++ b/Makefile @@ -521,7 +521,8 @@ env_h := include/generated/environment.h no-dot-config-targets := clean clobber mrproper distclean \ help %docs check% coccicheck \ - ubootversion backup tests check qcheck tcheck pylint + ubootversion backup tests check qcheck tcheck pylint \ + pylint_err config-targets := 0 mixed-targets := 0 @@ -2259,7 +2260,7 @@ distclean: mrproper @rm -f boards.cfg CHANGELOG # See doc/develop/python_cq.rst -PHONY += pylint +PHONY += pylint pylint_err PYLINT_BASE := scripts/pylint.base PYLINT_CUR := pylint.cur PYLINT_DIFF := pylint.diff @@ -2301,6 +2302,11 @@ pylint: echo "No pylint regressions"; \ fi +# Check for errors only +pylint_err: + $(Q)pylint -E -j 0 --ignore-imports=yes \ + $(shell find tools test -name "*.py") + backup: F=`basename $(srctree)` ; cd .. ; \ gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F