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.
This commit is contained in:
Christian Manivong committed 2026-10-23 08:47:43 +02:00
1 parent 1775f100e4
commit 3b87a9ad77
1 file changed
+6 -4
+6 -4
View File
@@ -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"]