From patchwork Sat Jan 3 20:32:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1248 Return-Path: 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=1767472381; bh=OCkNpXKpwKI95HRx18Pe3VNpouhoWHZSfEavj407dF0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ERyMrup9BnIDHDtcUOSmrnCqLBb4ZZqUQT1Ih466LHiodX1tEegkoDrNafnJJAPxt tAMlown0oRuAmtFnS/7zMYPUlshLkaOoCZjTJLxXthM1+R+36u+GwmBoiI/SHgswWD 7KiosxWU0fFAPIzL3XJDPhLmq1eJuM3xD5Gb85uMSujyhtC5yB4cAQkrGnndZFcx5d 7vKRvoiy2rFZBAXJO3jbnTe174YTh3VwlQfxfuBUXQvS3uczReQ4Q72/ncnl1oadMg xHXhWxA1wOnyidZuwiMazN36/Wom0NKEDkF2pO6HWWq1irt9cGl7Hen+QQlifg4Q2O PNYwGhdAIWvfQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6B50F68F71 for ; Sat, 3 Jan 2026 13:33:01 -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 GufYijpJdNhc for ; Sat, 3 Jan 2026 13:33:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767472381; bh=OCkNpXKpwKI95HRx18Pe3VNpouhoWHZSfEavj407dF0=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ERyMrup9BnIDHDtcUOSmrnCqLBb4ZZqUQT1Ih466LHiodX1tEegkoDrNafnJJAPxt tAMlown0oRuAmtFnS/7zMYPUlshLkaOoCZjTJLxXthM1+R+36u+GwmBoiI/SHgswWD 7KiosxWU0fFAPIzL3XJDPhLmq1eJuM3xD5Gb85uMSujyhtC5yB4cAQkrGnndZFcx5d 7vKRvoiy2rFZBAXJO3jbnTe174YTh3VwlQfxfuBUXQvS3uczReQ4Q72/ncnl1oadMg xHXhWxA1wOnyidZuwiMazN36/Wom0NKEDkF2pO6HWWq1irt9cGl7Hen+QQlifg4Q2O PNYwGhdAIWvfQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 57206690BA for ; Sat, 3 Jan 2026 13:33:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767472379; bh=wpZxqEoCeff0EjQAl39tJUZ0u7v0AOtrINW/D+zjM0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iOQ3eAuineeuuQDwAPpGgicS5tLBgUETbm/du8Jv35KVKwOJDH4xejwGjPH3m4AyN h6aT+EFLrXNwPligMCsmLp8nraKcCdmafJm3reqqaKc21A3Lyzo5zECXsCFbvpRIQ1 4OO0D1YTaPNrnbXNmWHAMp/GoKMwSL1NVzasF/tGM/0WJovzsaKk1ZzXWOoreijzwm hEffv7XvzqW9+pqXfO8audmm8anR2U8vzOAJ0ZNyVxeEWa9wj4dJdlSXoqbXCl2u9M xt3GemgOHUaZeoo8NHw6G+tkaZ93Lg5aF8GbFFIrmIIsH7LE9H3oxipN11UmqN4lvU mV3vlaYb0GmzA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D69DD68F71; Sat, 3 Jan 2026 13:32:59 -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 SdUSq9HkigLS; Sat, 3 Jan 2026 13:32:59 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767472375; bh=Xejol2a4bcKQb+x7FK3FWmw9oBALr33/0vNGVBBC6s8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uKOmRB7Q9WSsMo/PkMx2Xe2kkOBaDmlNOrRur6g9RAnTRt62lZsUXuBxu4stvbi/d PJs95aqE5Y9cPBjGnKh2CSrnrs0b7D7cRTBVzPIuOtxRWB9hFN2jygUJRBaEZhugzW ssowtr0xJ2VjBRqkSyWoUEZmjI8z4n6aoTlGOiEQHO7YYBzTGW1vkPY5qa/H2OPUKP dfPBn+NOSFAAT9hnBAuUQi5DTsf7hf60cL1JawHwHgOoIhFie477hx9W7ZsCTshcHU REFYICLtYWkClmyU95W4zhIEkHTBhEZJet7cUIwUdlWfyc4Ldi+bU5XYVZVUWeCch/ T5JmV1pWrYdbQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 699E1690BA; Sat, 3 Jan 2026 13:32:55 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sat, 3 Jan 2026 13:32:27 -0700 Message-ID: <20260103203243.3727493-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260103203243.3727493-1-sjg@u-boot.org> References: <20260103203243.3727493-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: V2IRHODG4QOECQYSXODHEWRM2UDNZ5B3 X-Message-ID-Hash: V2IRHODG4QOECQYSXODHEWRM2UDNZ5B3 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 , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 01/12] buildman: Suppress pylint warnings in board.py List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass The Board class is a data container that legitimately needs many attributes and constructor arguments. Suppress the following warnings: - too-many-instance-attributes - too-few-public-methods - too-many-arguments Also add missing type annotations to the docstring for consistency. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- tools/buildman/board.py | 18 ++++++++++-------- tools/buildman/boards.py | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/tools/buildman/board.py b/tools/buildman/board.py index c061bf56039..1d1de1123db 100644 --- a/tools/buildman/board.py +++ b/tools/buildman/board.py @@ -4,21 +4,23 @@ """A single board which can be selected and built""" +# pylint: disable=too-many-instance-attributes,too-few-public-methods class Board: """A particular board that we can build""" + # pylint: disable=too-many-arguments def __init__(self, status, arch, cpu, soc, vendor, board_name, target, cfg_name, extended=None, orig_target=None): """Create a new board type. Args: - status: define whether the board is 'Active' or 'Orphaned' - arch: Architecture name (e.g. arm) - cpu: Cpu name (e.g. arm1136) - soc: Name of SOC, or '' if none (e.g. mx31) - vendor: Name of vendor (e.g. armltd) - board_name: Name of board (e.g. integrator) - target: Target name (use make _defconfig to configure) - cfg_name: Config-file name (in includes/configs/) + status (str): Either 'Active' or 'Orphaned' + arch (str): Architecture name (e.g. arm) + cpu (str): Cpu name (e.g. arm1136) + soc (str): Name of SOC, or '' if none (e.g. mx31) + vendor (str): Name of vendor (e.g. armltd) + board_name (str): Name of board (e.g. integrator) + target (str): Target name (use make _defconfig to configure) + cfg_name (str): Config-file name (in includes/configs/) extended (boards.Extended): Extended board, if this board is one orig_target (str): Name of target this extended board is based on """ diff --git a/tools/buildman/boards.py b/tools/buildman/boards.py index 2330315fe95..793055550fb 100644 --- a/tools/buildman/boards.py +++ b/tools/buildman/boards.py @@ -790,6 +790,7 @@ class Boards: """Add Status and Maintainers information to the board parameters list. Args: + srcdir (str): Directory containing source code (MAINTAINERS files) params_list (list of dict): A list of the board parameters Returns: