From patchwork Fri Oct 18 19:32:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 21696 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id A6A5BC32AF for ; Fri, 18 Oct 2024 19:32:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 46FB26538B; Fri, 18 Oct 2024 21:32:54 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="L2yHBbe+"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6B31B633C6 for ; Fri, 18 Oct 2024 21:32:52 +0200 (CEST) Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4551321C; Fri, 18 Oct 2024 21:31:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1729279868; bh=sAe/xk7y47R4lT95x2cBxnCuD3b7LNzss+pmNQe5oyo=; h=From:To:Cc:Subject:Date:From; b=L2yHBbe+acK9AthbMlmydKPg6okDjrYT6hZcUuBE2G2i86CJvzQNirppe1oE+w1uR yiRZPJLb+7N3lsA4kDxrOMmUb73q8BK9Qg5Ma2j94zXBFeToVIrPl4cMIpZzWSjCHC wj71a31QKRsya6hbhzglQ8KKb1o8/8OJZBV9EjDc= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Stefan Klug Subject: [PATCH 0/4] utils: checkstyle.py: Improve dependency handling Date: Fri, 18 Oct 2024 22:32:42 +0300 Message-ID: <20241018193246.805-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This small patch series improve dependencies handling in checkstyle.py. The goal is to avoid Python exceptions when the autopep8 dependency isn't found (see https://gitlab.freedesktop.org/camera/libcamera/-/jobs/65242823), report missing dependencies in a consistent way, and avoid those reports when the missing dependency is not required to check the commits given to checkstyle.py. Laurent Pinchart (4): utils: checkstyle.py: Factor out common code to new CheckerBase class utils: checkstyle.py: Turn check() into a class method for all checkers utils: checkstyle.py: Print issues using __str__ utils: checkstyle.py: Centralize dependency handling for checkers utils/checkstyle.py | 298 +++++++++++++++++++++----------------------- 1 file changed, 140 insertions(+), 158 deletions(-) base-commit: c8d261608aa63b35a60a4bb2307c53a1b26c6832