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:
1 parent
1ef2034d87
commit
87f0dff43f
1 file changed
+5
-1
+5
-1
@@ -48,7 +48,11 @@ line-length = 100
|
|||||||
target-version = "py310"
|
target-version = "py310"
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[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]
|
[tool.mypy]
|
||||||
python_version = "3.10"
|
python_version = "3.10"
|
||||||
|
|||||||
Reference in new issue
Block a user