chore: adopt the NAPALM driver standard #7

Merged
christianmanivong merged 4 commits from chore/driver-standard into main 2026-10-23 12:53:46 +00:00
4 Commits
Author SHA1 Message Date
Christian Manivong c5d0b0d0f6 chore(release): 0.3.0
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 47s
driver / test (3.10) (pull_request) Successful in 5m50s
driver / test (3.11) (pull_request) Successful in 5m47s
driver / test (3.12) (pull_request) Successful in 5m47s
driver / security (pull_request) Successful in 1m7s
driver / build (pull_request) Successful in 28s
driver / lowest (pull_request) Successful in 5m26s
driver / test (3.13) (pull_request) Successful in 5m50s
CI / driver (pull_request) Successful in 12m9s
driver / publish (pull_request) Skipped
2026-10-23 11:37:04 +02:00
Christian Manivong e352801a1a chore: adopt the NAPALM driver standard
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 55s
driver / test (3.10) (pull_request) Successful in 5m52s
driver / test (3.11) (pull_request) Successful in 5m58s
driver / test (3.12) (pull_request) Successful in 5m49s
driver / test (3.13) (pull_request) Successful in 5m32s
driver / lowest (pull_request) Successful in 5m19s
driver / security (pull_request) Successful in 47s
driver / build (pull_request) Successful in 22s
CI / driver (pull_request) Successful in 31m5s
driver / publish (pull_request) Skipped
- CI moves to .gitea/workflows/ci.yml and calls the shared driver workflow
  of NAPALM/driver-standard; .github/ is gone.
- napalm-device-types >=4.21.1 from PyPI (the floor was 0.4.0).
- LICENSE, CHANGELOG, py.typed, SPDX license string, setuptools>=77,
  version floors on the dev extra (black is gone), links to git.netork.io;
  the README names Python 3.10 and the Gitea CI.
- mypy strict for the package; napalm_fritzbox.fritzbox is exempt for now
  (6 errors), recorded in the quality baseline with four long getters.
- Coverage floor 81 % (measured 81.36 %).
2026-10-23 09:00:49 +02:00
Christian Manivong a2fc59c8ab fix: what bandit and the remaining lint rules found
- get_wan_status: the catch-all except Exception: continue (B112) now logs
  at debug level before the next WAN service is tried, so a swallowed
  failure leaves a trace. A module logger is new.
- The "any remote host" placeholder of get_nat_translations is a named
  constant with a nosec (B104): an address reported as data, never a
  bind. The output is unchanged.
- ruff found nothing left after the mechanical pass.
2026-10-23 08:52:23 +02:00
Christian Manivong b23967417c 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.
2026-10-23 08:47:07 +02:00