From 3b87a9ad77490af1a549d34aefd2ca9cfbbafb8f Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Fri, 23 Oct 2026 08:47:43 +0200 Subject: [PATCH] style: ruff format and the lint rules of the driver standard Mechanical: the rule set every NAPALM driver uses (E, F, I, UP, B at line length 100, Python 3.10), with E501 off under tests/. The code was already formatted and clean under it; what ruff cannot fix comes in the next commit. --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 892b7a4..3f08fbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,9 +66,11 @@ testpaths = ["tests"] [tool.ruff] line-length = 100 -target-version = "py39" +target-version = "py310" -# Same rule set the netOrk repo gates on, so this driver is held to the -# standard of the project that consumes it rather than to ruff's defaults. [tool.ruff.lint] -select = ["E", "F", "I", "UP"] +select = ["E", "F", "I", "UP", "B"] + +[tool.ruff.lint.per-file-ignores] +# Recorded device output keeps its lines. +"tests/**" = ["E501"]