chore: adopt the NAPALM driver standard #8

Merged
christianmanivong merged 4 commits from chore/driver-standard into main 2026-10-23 10:43:57 +00:00
2 changed files with 8 additions and 4 deletions
Showing only changes of commit 1271218868 - Show all commits

No files matched your search

+3 -2
View File
@@ -66,8 +66,9 @@ pip install -e vendor/napalm-device-types/ -e vendor/napalm-vmware/
```python
from napalm_vmware import VmwareEsxiDriver
driver = VmwareEsxiDriver("esx01.example.lan", "root", "secret",
optional_args={"verify_ssl": False})
driver = VmwareEsxiDriver(
"esx01.example.lan", "root", "secret", optional_args={"verify_ssl": False}
)
driver.open()
print(driver.get_facts())
for vm in driver.get_vms():
+5 -2
View File
@@ -69,9 +69,12 @@ markers = [
line-length = 100
target-version = "py310"
# Same rule set the netOrk repo gates on.
[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"