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:
christianmanivong committed 2026-10-23 08:32:58 +02:00
1 parent 1ef2034d87
commit 87f0dff43f
1 file changed
+5 -1
+5 -1
View File
@@ -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"