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 0B834C001E0 for ; Sun, 16 Jul 2023 00:46:29 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5DBBE866CC; Sun, 16 Jul 2023 02:40:07 +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="LZOIul0u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C8B386643; Sun, 16 Jul 2023 02:38:19 +0200 (CEST) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 1670C86301 for ; Sun, 16 Jul 2023 02:38:01 +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-xd35.google.com with SMTP id ca18e2360f4ac-7836272f36eso143180139f.1 for ; Sat, 15 Jul 2023 17:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467879; x=1692059879; 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=jdLl+UJVIxEm30V5pPEq0FDYG0AjIDip45Ss+GUvLj4=; b=LZOIul0uGUAyXuV8tikSK3W2rHLBpCzPrc+oO1GUFNOkWBxW/3qRNJMdqmLo+Opnya 4mjPdyMcqandwTi0SuazlbPapU/G7+hicCrvl0a25fOvwe+HANba9luV+VHyX/Nam7vD k70T374vOxuNCrbVzwskzGbuvqdBHQODt7qLo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467879; x=1692059879; 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=jdLl+UJVIxEm30V5pPEq0FDYG0AjIDip45Ss+GUvLj4=; b=ZSMNptPZ67bv4/KAMC/m+bAWq9l78pZ/T8Q4gt3fbw12wZen10UXMAAqMlp259TyJC TKmkSXifnP1SOtmLj2lK5pVQYxV2Uq86X/DVk9TGGV01rT/SxgYb/AE2Ii9mRFNAJMel z/FASxIVljJjEXnmqwwEWQnggLngAL0T8lHOKlURb62BASp9/+zxAFhpYv0UaRchU/rZ 2poXXkoWS12/U0084FT53WY7TbYqvg+A2G/ov/n68tX/e6rkdyGR8Of01bIx2RHTxn1W kpbddSrWeAJ69e1Ml8SL2YdCcUisxeb0005O5jNqUPcoCXNgHXMEjBtOWh7hDvZ3xJKw fAqg== X-Gm-Message-State: ABy/qLbSvZXPQg4d1RbMLpnjAr0aXeSbHjOMSYPcGPJoJlxHA/NxdJdM uvghyN4/Z9now18XEbyq9GN/31evWGQc/XrbWA8= X-Google-Smtp-Source: APBJJlEAoWR1byw7C01ncAKNeaLSbDiyj9h8Ghk170pgWTll5njNysOhzqtTxKFucbcoV1HA8a3QRg== X-Received: by 2002:a5e:c908:0:b0:77e:2883:13f3 with SMTP id z8-20020a5ec908000000b0077e288313f3mr8969707iol.14.1689467879685; Sat, 15 Jul 2023 17:37:59 -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 t3-20020a05663801e300b0042b52dc77e3sm3510512jaq.158.2023.07.15.17.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:59 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 52/81] buildman: Correct most pylint warnings in cmdline Date: Sat, 15 Jul 2023 18:36:20 -0600 Message-ID: <20230716003718.231903-53-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.455.g037347b96a-goog In-Reply-To: <20230716003718.231903-1-sjg@chromium.org> References: <20230716003718.231903-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.455.g037347b96a-goog