| Message ID | 20260103203243.3727493-1-sjg@u-boot.org |
|---|---|
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767472374; bh=WiBD0fqOXgAduHmqsrukBiC2v8fQJT1EXHcE8yHDs9w=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=XAn2vqQjuRO6HR+Hq78hxKCI8HIXS/GvrYGyls3PjcvYXrx0C3LH8N+pyqL/9Uxz+ ijIisMfLtvbZ6YgfDnPvp9hnRzJ9EdzghidMcG88zCBN0iwA+steU1UK1DNQlWQY5K X/xRu4nkz/N/LlxPrJ25qusivTARJziZYa24fsAJrZSgIvQiJ7CNeSu9npgNVRCeDh a/nx5yz3qb3U8n1hEBidkf8obKOsB0BFUoBr1PPkgOEbb7aTavGv/dDtUAhTJuXMGl JL8vcLe1dFU/VqNy71lmkRo5DpLIIrWsfgM9U9kOTGQXC7rYVM4sL+cgmBDT7Wg+to 8klHU0I9/DiEA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id CEB62690BB for <u-boot-concept@u-boot.org>; Sat, 3 Jan 2026 13:32:54 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id TojAliITCiLl for <u-boot-concept@u-boot.org>; Sat, 3 Jan 2026 13:32:54 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767472374; bh=WiBD0fqOXgAduHmqsrukBiC2v8fQJT1EXHcE8yHDs9w=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=XAn2vqQjuRO6HR+Hq78hxKCI8HIXS/GvrYGyls3PjcvYXrx0C3LH8N+pyqL/9Uxz+ ijIisMfLtvbZ6YgfDnPvp9hnRzJ9EdzghidMcG88zCBN0iwA+steU1UK1DNQlWQY5K X/xRu4nkz/N/LlxPrJ25qusivTARJziZYa24fsAJrZSgIvQiJ7CNeSu9npgNVRCeDh a/nx5yz3qb3U8n1hEBidkf8obKOsB0BFUoBr1PPkgOEbb7aTavGv/dDtUAhTJuXMGl JL8vcLe1dFU/VqNy71lmkRo5DpLIIrWsfgM9U9kOTGQXC7rYVM4sL+cgmBDT7Wg+to 8klHU0I9/DiEA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B8220690B8 for <u-boot-concept@u-boot.org>; Sat, 3 Jan 2026 13:32:54 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767472373; bh=27mlUEMDTeIzGdukICtkE+dz1owNYwZKCcYMZ04Ug5o=; h=From:To:Cc:Subject:Date:From; b=bleNmOkLIIO5ABHYBr/gz8Zxbb4pdIFxF83Ql5wCmeQ6XN9U2jziwNYWzfZMoTdvX Ptz73s89rLj6CjzVkStTbz2gJADAzAImhs69UY8N010lN9TjCBsPXOwqKPvf5ShVXF /V1D20Vicu91VGHNhjaZaK6cA7voX2JWHG7dcarYBzxHIWt0t9xcDsSlDJpCykkr62 0lyK0jKQZOIiH0KkhT7/s8mc+BGecA3hcQUekoJkm7lZtiHA9ncLhauDxpVD3Iz46Z W5ByMQqGYqAOL50seXM/oyemJziWTQxo9pgBTkpnLfLbaehTDT1Gi3rKZdrv7R8dSx m6ZZtDIt37Xuw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 60F26690B8; Sat, 3 Jan 2026 13:32:53 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id sn_dQKGVAK8x; Sat, 3 Jan 2026 13:32:53 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767472369; bh=q0kL1Y94ubpvAmOHvIZsBXT1H/UogqadrXsZ42W90Vs=; h=From:To:Cc:Subject:Date:From; b=Ed5oPoxmBk1fivUMonj1Fej+RmGwuTP6V4iqUOr3RMO/8JvEkis5AZ9Ejdig/umOm 1e4iwxzh4+uhQaHRZ+67Ow3leNpVdMF2gShEQqk4swpWNIsfYX+TcD7OAik51mP2I3 aSTj/HYMZPtFrTyyk1UA+iyj2ydKLHMHdmq02O0o9DHUjy4At1CcoIXxVs9+TPrZ0U WbZPAYDePlNnxdprbK9jJxyPcZpN4rG8TjzjKF9nnfGspsCNJJzOOj5s7PCGLHDvlb qcfZjKnlYn8ASeRujLFhSanyn/mL/TvFamSIuLg3wnrjoxvnoDtES7nnnI4q+fvmJL U6S+sxV1SNKKA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 01BE068FC8; Sat, 3 Jan 2026 13:32:48 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sat, 3 Jan 2026 13:32:26 -0700 Message-ID: <20260103203243.3727493-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: BEN5H3OXJ6KM3WD6LF7NNOSH3YKLEZ3A X-Message-ID-Hash: BEN5H3OXJ6KM3WD6LF7NNOSH3YKLEZ3A X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <simon.glass@canonical.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/12] buildman: Fix pylint warnings in board.py and boards.py List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/BEN5H3OXJ6KM3WD6LF7NNOSH3YKLEZ3A/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
buildman: Fix pylint warnings in board.py and boards.py
|
|
Message
Simon Glass
Jan. 3, 2026, 8:32 p.m. UTC
From: Simon Glass <simon.glass@canonical.com>
This series addresses pylint warnings in the buildman board modules,
achieving a 10/10 pylint score.
For board.py, unavoidable warnings (too-many-instance-attributes,
too-few-public-methods, too-many-arguments) are suppressed since the
Board class is a legitimate data container.
For boards.py, the series:
- Fixes line-too-long and missing return documentation warnings
- Refactors complex functions by extracting helper methods to reduce
too-many-branches and too-many-locals warnings
- Adds missing parameter documentation
- Suppresses remaining unavoidable warnings
Simon Glass (12):
buildman: Suppress pylint warnings in board.py
buildman: Fix pylint warnings in boards.py
buildman: Extract arch fixups from scan() into separate function
buildman: Use specific exception type in _fixup_arch()
buildman: Extract tag parsing from parse() into _parse_tag()
buildman: Extract defconfig loading from scan() into _load_defconfig()
buildman: Extract target checking from scan() into _check_targets()
buildman: Extract F: and N: tag handling in parse_file() into methods
buildman: Split _start_defconfig_scans() into two functions
buildman: Extract helper functions from output_is_new()
buildman: Extract _check_board() from select_boards()
buildman: Fix remaining pylint warnings in boards.py
tools/buildman/board.py | 18 +-
tools/buildman/boards.py | 565 ++++++++++++++++++++++++++-------------
2 files changed, 383 insertions(+), 200 deletions(-)