From 06a39b49b36ce75f3f5b6dda67dff2c62ecedcbe Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Fri, 23 Oct 2026 08:41:56 +0200 Subject: [PATCH] style: ruff format and the lint rules of the driver standard The rule set every NAPALM driver uses (E, F, I, UP, B at line length 100, Python 3.10). The code already meets it: ruff format and ruff check --fix change nothing. --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 04a24f5..b2901aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,4 +53,11 @@ include = ["napalm_hpe_officeconnect*"] [tool.ruff] line-length = 100 -target-version = "py38" +target-version = "py310" + +[tool.ruff.lint] +select = ["E", "F", "I", "UP", "B"] + +[tool.ruff.lint.per-file-ignores] +# Recorded device output keeps its lines. +"tests/**" = ["E501"]