From 87f0dff43f71ddcafbb4d52343e817a4f642fb2d Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Fri, 23 Oct 2026 08:32:58 +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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9495a51..207cdbb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,11 @@ line-length = 100 target-version = "py310" [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"] [tool.mypy] python_version = "3.10"