Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B858FC0015E for ; Wed, 19 Jul 2023 23:58:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF72886889; Thu, 20 Jul 2023 01:52:23 +0200 (CEST) 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="RjzZh3d9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A0E8867D2; Thu, 20 Jul 2023 01:50:46 +0200 (CEST) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 CC9BA867DF for ; Thu, 20 Jul 2023 01:50:40 +0200 (CEST) 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-xd2f.google.com with SMTP id ca18e2360f4ac-78363cc070aso9017139f.1 for ; Wed, 19 Jul 2023 16:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810639; x=1690415439; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pOLzpm7MEaClEazYH0grcr2PCKl+jS521G69bjNh6pM=; b=RjzZh3d9Av3mD1gBZMZkmFREXAXooSbPn3Zt86PM5n7Rmnz2yeysNN6x/G0+atnbsM kqb4n92jpRuiWPVqKNjTiB5GY421QaRXUa3pl3qtFmTgOJQN/wvgv8Asv/6wnk5QPU4k Zo8so4iA1jAnrCQy6r8H4abPaQ9luxUOm86sU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810639; x=1690415439; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pOLzpm7MEaClEazYH0grcr2PCKl+jS521G69bjNh6pM=; b=KqNiTACvPav1IHL9omd7pdFH+fWj0dH3cLmKBcHArqZ9BCVpAj2T2vZu8H/DnRgcA2 vvV2HqVPirnfE8nqC+S5YmGHT54gRm6PMMGx+51QzxhhmwRt1tf1E0h7QL/RcME0hWfO 9zFqONGUDZ/DF/aCmjecE3bZqsnIzEg9dxsAJi1JTkYQCvtVfLO8Q2+mwoNERfWmuNxC 9Zbf/xg/TmjsWVMxTRdYMc9LmrsY/ZY9Ik1IhJHBiXiwrsm+GImFxHPY4MPBJe4SfNpz PDugu/SqHLlf5kDxqA6BkiHJQW9gW+cQC54+E5vQdRiMN2FO4trI8vNsix1DodGh8Suy iC5g== X-Gm-Message-State: ABy/qLYjXodH/NUQpnv1hN+l6hRFys092j3wQzyZB7JlTtDOxpWa26ku nz/hLhtotW+Qe1UPjF2X+0xZv4sAe/6svsX/Jw8= X-Google-Smtp-Source: APBJJlH962bBdZKQpTcYtxnbIIqPreAutrOPSl9NHRZt7MRi6SO9HHZSaHrbsVX9fMs0Ro47WcVqLg== X-Received: by 2002:a05:6602:1d7:b0:787:169a:927 with SMTP id w23-20020a05660201d700b00787169a0927mr3719463iot.20.1689810639472; Wed, 19 Jul 2023 16:50:39 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id ed16-20020a056638291000b0042bb1779c18sm1551779jab.151.2023.07.19.16.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:39 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 54/83] buildman: Correct most pylint warnings in cmdline Date: Wed, 19 Jul 2023 17:49:02 -0600 Message-ID: <20230719234953.796101-55-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230719234953.796101-1-sjg@chromium.org> References: <20230719234953.796101-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.8 at phobos.denx.de X-Virus-Status: Clean Tidu up warnings in this file. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/cmdline.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tools/buildman/cmdline.py b/tools/buildman/cmdline.py index 503c48d769ff..660a83bc3d0f 100644 --- a/tools/buildman/cmdline.py +++ b/tools/buildman/cmdline.py @@ -2,6 +2,11 @@ # Copyright (c) 2014 Google, Inc # +"""Handles parsing of buildman arguments + +This creates the argument parser and uses it to parse the arguments passed in +""" + from optparse import OptionParser import os import pathlib @@ -71,7 +76,8 @@ def parse_args(): parser.add_option('-k', '--keep-outputs', action='store_true', default=False, help='Keep all build output files (e.g. binaries)') parser.add_option('-K', '--show-config', action='store_true', - default=False, help='Show configuration changes in summary (both board config files and Kconfig)') + default=False, + help='Show configuration changes in summary (both board config files and Kconfig)') parser.add_option('--preserve-config-y', action='store_true', default=False, help="Don't convert y to 1 in configs") parser.add_option('-l', '--list-error-boards', action='store_true', @@ -84,16 +90,17 @@ def parse_args(): default=False, help="Run 'make mrproper before reconfiguring") parser.add_option( '-M', '--allow-missing', action='store_true', default=False, - help='Tell binman to allow missing blobs and generate fake ones as needed'), + help='Tell binman to allow missing blobs and generate fake ones as needed') parser.add_option('--maintainer-check', action='store_true', help='Check that maintainer entries exist for each board') parser.add_option( '--no-allow-missing', action='store_true', default=False, - help='Disable telling binman to allow missing blobs'), + help='Disable telling binman to allow missing blobs') parser.add_option('-n', '--dry-run', action='store_true', dest='dry_run', default=False, help="Do a dry run (describe actions, but do nothing)") parser.add_option('-N', '--no-subdirs', action='store_true', dest='no_subdirs', - default=False, help="Don't create subdirectories when building current source for a single board") + default=False, + help="Don't create subdirectories when building current source for a single board") parser.add_option('-o', '--output-dir', type='string', dest='output_dir', help='Directory where all builds happen and buildman has its workspace (default is ../)') parser.add_option('-O', '--override-toolchain', type='string', -- 2.41.0.487.g6d72f3e995-goog