Skip to content

selftests: openvswitch: pylint cleanup for ovs-dpctl.py

Minxi Hou linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5selftests: openvswitch: convert %-formatting to f-stringstools/testing/selftests/net/openvswitch/ovs-dpctl.py+123 -1510 replies
2/5selftests: openvswitch: fix misc pylint warnings in ovs-dpctl.pytools/testing/selftests/net/openvswitch/ovs-dpctl.py+21 -290 replies
3/5selftests: openvswitch: rename classes and variables in ovs-dpctl.pytools/testing/selftests/net/openvswitch/ovs-dpctl.py+188 -1860 replies
4/5selftests: openvswitch: add missing docstrings in ovs-dpctl.pytools/testing/selftests/net/openvswitch/ovs-dpctl.py+91 -30 replies
5/5selftests: openvswitch: suppress pylint complexity warningstools/testing/selftests/net/openvswitch/ovs-dpctl.py+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/5] selftests: openvswitch: pylint cleanup for ovs-dpctl.py

This series cleans up all pylint warnings in ovs-dpctl.py, bringing the score from 7.62/10 to 10.00/10.

This series applies on top of:
[PATCH net-next v10 1/2] selftests: openvswitch: add vlan() and encap() flow string parsing
https://lore.kernel.org/netdev/[email protected]/

Patch 1 converts 86 %-format strings to f-strings. Patch 2 fixes misc warnings (unused import, bare except, unused variables, redundant expressions).
Patch 3 renames classes to PascalCase and variables to snake_case. Patch 4 adds one-line docstrings to all definitions. Patch 5 suppresses complexity warnings from pyroute2 constraints.

Tested with vng on x86_64, all OVS selftests pass.

Minxi Hou (5):
selftests: openvswitch: convert %-formatting to f-strings
selftests: openvswitch: fix misc pylint warnings in ovs-dpctl.py
selftests: openvswitch: rename classes and variables 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    | 794 ++++++++++--------
 1 file changed, 428 insertions(+), 366 deletions(-)
Signature · 1 line
2.53.0