Clean up the ovs-dpctl.py selftest utility to pass pylint.  All
changes are mechanical style fixes with no behavior change; the full
openvswitch.sh selftest suite passes (17/17) on this tree.

The series fixes all pylint warnings except 10 remaining C0301
line-too-long warnings (81-89 columns) on f-string constructions
that match the surrounding style, bringing the score from 7.66/10
to 9.93/10:

  patch 1: convert %-formatting to f-strings (C0209)
  patch 2: fix miscellaneous warnings (unused imports/variables,
           bare except, superfluous parens, etc.)
  patch 3: add missing module/class/method docstrings
           (C0114/C0115/C0116)
  patch 4: suppress framework-inherent complexity warnings

Minxi Hou (4):
  selftests: openvswitch: convert %-formatting to f-strings
  selftests: openvswitch: fix misc pylint warnings in ovs-dpctl.py
  selftests: openvswitch: add missing docstrings in ovs-dpctl.py
  selftests: openvswitch: suppress pylint complexity warnings

 .../selftests/net/openvswitch/ovs-dpctl.py    | 425 ++++++++++--------
 1 file changed, 245 insertions(+), 180 deletions(-)


base-commit: 9eab111e765729e93087ff86a2ec9b2ae42d0fa5
-- 
2.55.0


Reply via email to