style: ruff format and the lint rules of the driver standard

Mechanical: ruff format, and ruff check --fix with the rule set every NAPALM
driver uses (E, F, I, UP, B at line length 100, Python 3.10). What ruff
cannot fix comes in the next commit.
This commit is contained in:
Christian Manivong committed 2026-10-23 12:04:32 +02:00
1 parent 5aa06a485d
commit 6d82fad80a
3 files changed
+53 -41

No files matched your search

+3 -1
View File
@@ -9,10 +9,12 @@ def test_type_label_is_storage():
def test_type_label_overrides_linux():
from napalm_linux.linux import LinuxDriver
assert LinuxDriver.TYPE_LABEL == "Linux"
assert OpenMediaVaultDriver.TYPE_LABEL != LinuxDriver.TYPE_LABEL
def test_storage_device_flag_removed():
assert not hasattr(OpenMediaVaultDriver, "storage_device"), \
assert not hasattr(OpenMediaVaultDriver, "storage_device"), (
"storage_device is superseded by TYPE_LABEL = 'Storage'"
)