From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7F83945E68; Tue, 10 Dec 2024 11:34:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D8A84029B; Tue, 10 Dec 2024 11:34:18 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id BF4394025A for ; Tue, 10 Dec 2024 11:34:16 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 32F59113E; Tue, 10 Dec 2024 02:34:44 -0800 (PST) Received: from localhost.localdomain (JR4XG4HTQC.cambridge.arm.com [10.1.31.80]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 99D413F58B; Tue, 10 Dec 2024 02:34:15 -0800 (PST) From: Luca Vizzarro To: dev@dpdk.org, Patrick Robb Cc: Luca Vizzarro Subject: [PATCH 0/6] dts: add Ruff and docstring linting Date: Tue, 10 Dec 2024 10:32:47 +0000 Message-ID: <20241210103253.3931003-1-luca.vizzarro@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi there, sending a new patchset to cover the replacement of all the current linters with Ruff. The configuration of Ruff was attempted to be 1:1, but there are slight differences meaning that Ruff did not purposely implement all the rules. Either way, at the moment it should be a near perfect match and satisfy our requirements. I've also took the chance to enable some new docstring linting rules which mimic the new pydoclint project. Best, Luca Luca Vizzarro (6): dts: add Ruff as linter and formatter dts: enable Ruff preview pydoclint rules dts: fix docstring linter errors dts: apply Ruff formatting dts: update dts-check-format to use Ruff dts: remove old linters and formatters devtools/dts-check-format.sh | 30 +-- dts/framework/params/eal.py | 5 +- dts/framework/remote_session/dpdk_shell.py | 1 - dts/framework/remote_session/python_shell.py | 1 + .../single_active_interactive_shell.py | 3 +- dts/framework/runner.py | 14 +- dts/framework/settings.py | 3 + dts/framework/test_suite.py | 6 +- dts/framework/testbed_model/capability.py | 13 +- dts/framework/testbed_model/cpu.py | 21 +- dts/framework/testbed_model/linux_session.py | 6 +- dts/framework/testbed_model/node.py | 3 + dts/framework/testbed_model/os_session.py | 3 +- dts/framework/testbed_model/port.py | 1 - dts/framework/testbed_model/posix_session.py | 16 +- dts/framework/testbed_model/sut_node.py | 2 +- dts/framework/testbed_model/topology.py | 6 + .../traffic_generator/__init__.py | 3 + .../testbed_model/traffic_generator/scapy.py | 7 +- .../traffic_generator/traffic_generator.py | 3 +- dts/framework/utils.py | 6 +- dts/poetry.lock | 197 +++--------------- dts/pyproject.toml | 40 ++-- dts/tests/TestSuite_vlan.py | 22 +- 24 files changed, 172 insertions(+), 240 deletions(-) -- 2.43.0