| Message ID | 20260104200844.481633-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=1767557338; bh=P9Xe2P9qVF8LFFyfuz7C5fC9yKIuDGVseWqzYMGbRzQ=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=sNzvKavYW23TJISUxV/yDPkgEY8ZQBBVtTh7BlIcctkHEm9mMwAPoRAtPCfTdVp+A xAgFUm/NLyDrRS/i7TAw+noMEwoyaNHZ64Erb1OLrANktCGxH4p//w24+sCZj2Rd3Q iv6G1QlBHfBYFhpz2rAf3+B1VR+2qv69yDqFKRLaKBPaNcQEtPO4V6QFk+FSnrXdY2 eLOEtugfkQhxvV3Zw2jX+siZ5v691dQDcxjYShKJ/dKTFJkVw1PCTUAEu77yFzDA5b 5p2qGhy8f4FaCqp8hao4RUcPyKuypnWJn3brL5ksLQOgKNDtOhSDOA/O41hrUhhuIr taNdx7fQVHrTQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 20EEF690D9 for <u-boot-concept@u-boot.org>; Sun, 4 Jan 2026 13:08:58 -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 DEntX66syk3M for <u-boot-concept@u-boot.org>; Sun, 4 Jan 2026 13:08:58 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767557338; bh=P9Xe2P9qVF8LFFyfuz7C5fC9yKIuDGVseWqzYMGbRzQ=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=sNzvKavYW23TJISUxV/yDPkgEY8ZQBBVtTh7BlIcctkHEm9mMwAPoRAtPCfTdVp+A xAgFUm/NLyDrRS/i7TAw+noMEwoyaNHZ64Erb1OLrANktCGxH4p//w24+sCZj2Rd3Q iv6G1QlBHfBYFhpz2rAf3+B1VR+2qv69yDqFKRLaKBPaNcQEtPO4V6QFk+FSnrXdY2 eLOEtugfkQhxvV3Zw2jX+siZ5v691dQDcxjYShKJ/dKTFJkVw1PCTUAEu77yFzDA5b 5p2qGhy8f4FaCqp8hao4RUcPyKuypnWJn3brL5ksLQOgKNDtOhSDOA/O41hrUhhuIr taNdx7fQVHrTQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0D17A690D1 for <u-boot-concept@u-boot.org>; Sun, 4 Jan 2026 13:08:58 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767557334; bh=j0BzpP9dh36uR9lhIbzqDwjm6FVJC4QLDmay/fDYvlY=; h=From:To:Cc:Subject:Date:From; b=HEBir4qF7TVd7rpO4f8wDMAWw+vtyCJ74o7D2+ChaDugP9mqkjAb8zkUj83TXpDZP 1euGnu18EsEhygRhv6sXuY9mBpq5aRCQ4QKvbSqO14xYTFSgarbPDsrNZTLMhZ68bV aOy7Fte4l/Hc5lBgHCLPE0w837JtO1D3LvGeeFG2YSTXouUcizL6aTTGCidtYnpj7O uBTpix3txwSARyd8kL2nXXijr2dIss4e/towdwwcdmVdrNxVC6+C1T4uurnAO1EuPg U7juaKe8a80gsoXEIe7x8ULjUHqVeqtbzIUoetYIJPXg6YADBGjkUlJF/dAEtPj8am idPuuPInq3ENA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BBC4A690BD; Sun, 4 Jan 2026 13:08: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 10026) with ESMTP id 8MnIbxnxvEz0; Sun, 4 Jan 2026 13:08:54 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767557330; bh=VTH2Nt86dbBYOfczc1ka/+34A/DIOAMuccUeCETd3Iw=; h=From:To:Cc:Subject:Date:From; b=wRIzIr7yNwofiD4SisJkGxZzepPIPz/KdAN9qjTu7yZxgZ/EuPdzWSAVUtBKzFfzc tHRb7A2w88ZR/gdRdchx7nySCU748cj7Mgzmae6ELkP6duSknBRSMI289R0iXlw8cl askFy5x4YszpLMrWazBvmDg3rz0rUyukwbE8DaJ8wNnrZPoRYiFFUX5R22qEpaCoVK LV0mDUlEZ8T7+aH4zJvSWxFx9MZVzlzWbJPEwEk2GrVvfvhTA5uEdUoqvWK6NQptgS Bj9+dbFEdff/0/BXffPVIZO8E6jYPT9sV/Y+oTsbV1ojDQmGEenOSSST0ZUwpF96Wl ywCbXeGqkJqAg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 3841269003; Sun, 4 Jan 2026 13:08:50 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sun, 4 Jan 2026 13:08:29 -0700 Message-ID: <20260104200844.481633-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: WZLIUADO44H5XGYOLU6Y4ROYXPFHMJPS X-Message-ID-Hash: WZLIUADO44H5XGYOLU6Y4ROYXPFHMJPS 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: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <simon.glass@canonical.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/11] buildman: Pylint cleanups 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/WZLIUADO44H5XGYOLU6Y4ROYXPFHMJPS/> 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: Pylint cleanups
|
|
Message
Simon Glass
Jan. 4, 2026, 8:08 p.m. UTC
From: Simon Glass <simon.glass@canonical.com>
This series cleans up pylint warnings across several buildman modules,
bringing them all to 10.00/10:
- main.py: Remove dead imports, fix docstrings, fix control flow
- bsettings.py: Add docstrings, fix exception handling, use f-strings
- test_bsettings.py: Use tools.read_file/write_file helpers
- toolchain.py: Rename CamelCase methods to snake_case, add docstrings,
document public members, use f-strings, fix various warnings
- test_boards.py: Fix long lines, unused variables
The toolchain.py changes are split into multiple commits for easier
review, as the file required significant updates.
Simon Glass (11):
buildman: Fix pylint warnings in main.py
claude: Drop mention of --no-ext-diff
buildman: Fix pylint warnings in bsettings.py
buildman: Use tools.read_file/write_file in test_bsettings.py
buildman: Rename toolchain methods to snake_case
buildman: Fix docstrings in toolchain.py
buildman: Make MyHTMLParser.re_arch private
buildman: Document all Toolchain public members
buildman: Use f-strings in toolchain.py
buildman: Fix remaining pylint warnings in toolchain.py
buildman: Fix pylint warnings in test_boards.py
CLAUDE.md | 1 -
tools/buildman/bsettings.py | 60 +++---
tools/buildman/builder.py | 2 +-
tools/buildman/builderthread.py | 6 +-
tools/buildman/control.py | 16 +-
tools/buildman/func_test.py | 6 +-
tools/buildman/main.py | 30 ++-
tools/buildman/test.py | 90 ++++----
tools/buildman/test_boards.py | 72 ++++---
tools/buildman/test_bsettings.py | 16 +-
tools/buildman/toolchain.py | 350 +++++++++++++++++--------------
tools/qconfig.py | 8 +-
12 files changed, 346 insertions(+), 311 deletions(-)