From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B13F43F7A86 for ; Wed, 13 May 2026 12:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778674379; cv=none; b=deLZKqxd/Y79gPp/rkw8ggILBWov9dFdGGsurQStDiMp7py5kog1HddvW65nihSt+THMKBVlGkjmgDCQswq6nB4kOaPnxnYczdi6Ucl4N/CmDG/+G/XdXwfgce5qzqzxKMybCjMhmWn0MefNmlmwXbnxlsWlcyv5Q/teEkDmaJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778674379; c=relaxed/simple; bh=sIVkmbnPi62X8BjG8OyL5YZgklagbQK9bg+ZcgvmI4g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i9EX2b95HMgQxsHiPrHfA7dDIoOu3Wq/7bye9/oJJmHQK7WC0RW7quTvRaa1cIU1yk2yUUa/pRXo5CvsbfE+qSKZFwmxY7Js2ylbpTYoDKppkH/J4r7NAuY6Nvwoc4+qGMubwERb0c4qMBtfXPPyUFZ0rWrCt3QUfBBrU9+0WLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=a4Wb0CE6; arc=none smtp.client-ip=209.85.210.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a4Wb0CE6" Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-7de44ed7a11so5407503a34.1 for ; Wed, 13 May 2026 05:12:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778674377; x=1779279177; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bFWZYsDIujsbYZ6k3QHQTk5T7lp4/robhtHZwKO93sc=; b=a4Wb0CE6nOkp7nT7LngOlBsUGsbweu8Pw54qyYoMK9N+KIhglr+2VsOdlBP1TG50La 0JkEBR8x9VrFrSKJg6AyX0p6JGOsz6gDZj7ZSeQJHJPzRy0ih+VH9K0KDyaDQQWOOdxq yZHkcjge2xxmtXfmg22w0jAhOpWzOvUe/s67yob0kMj3Iy+n0/W3m8LD2nl67rJmzDKu 5A5JrurKy3JX8YloERz3D/4PR2HPcmTP5981UDwd/bGsp84ARnEKo/GirmugjmH/uJI/ 7KWvIXb9w6Swpp54VIb3hjKCrEarIkrzl5ay4khCx0AdeoVvr0tyCpMY709jkMaPQHfx iD4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778674377; x=1779279177; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bFWZYsDIujsbYZ6k3QHQTk5T7lp4/robhtHZwKO93sc=; b=E5nHHJFv7/8wFV30HAUbbu0gaYfwVswPRcAkUVyEluOasozbPher8o1txSyPPyQ//8 RxUQ1nfOfaDgomLdT3rfDpNGyyrlDtbNL0jXkjRzcih9hZLKQeplyPlvHVGKNEZviKa3 NU2rdTJvJSUXx1KITF03DOt1Col43miYdeTYchhsIAmFt66Np1HckxEDByhVSnP/as8G ADELbsktXpq3aERU5EHLYCpXTEqXjWgpt+78wbFiMhrNpP6bOuau1ryTKxq9XLSg9cYz 60fADork9H53vZoUJUQYYNHOaLRZAi3WPUdUvotWrBXjusxIGf2zcfNPoz2RkbPPA5zE /uuQ== X-Forwarded-Encrypted: i=1; AFNElJ+suPTojyGQGVZcWhBD+eT9Pu8ZAHEqqjvtR/VJagjMVPJbgTLCQxJbhFiwDfyA/JP0JP6QFUwDuuSzbkg=@vger.kernel.org X-Gm-Message-State: AOJu0YxyLo501NE1s3gq7orzNbjSzanIoBDWK5cV8GTq4a6cUpBpqLrS b13cyZc0Fg3YbPC6qc0/8UcqIfc9yXG9NjgxWiEum+IrrASLafIs6YOw X-Gm-Gg: Acq92OEW3JKPDaI2Ve5lSxDepN163xufELb5doBbM8+3GE7MUlnPQhaKgwPkuwmugQH 3F+gJc8zAnC4rYsJoPHTgEkcFh6SzgDFsH3RxIuIThHs2T883PGFU/10tGxMpT3EJZIfADVhNeI MhDZ5rSvf7YR/nsX0t/sXUEjGsWupWSw8kt8SFcdHOQWnA/WCEEuojrqo0sb7QLgdenqHnt3DoW +9BrYDQCuFg2IMVQgdxRI6cZK4udCHlF2lPQ3vV0tgOhRNvrlSxGbLCTd6TsJmQ+AS6jL7/RnX+ zfRTVLjvvL5UYwoS6TdknSJlD2nJ9kyJcAou8KU5xAUxFrdMbvChCcJ+VOolMVcEPkHknN9Io1C nAYfffcTCUqMcFGwTgAWEeZZD6VTYfNpdao2MCOXha7/HVx0hxUPy9NkQZ9gnBIY6osH0IqycQV tGD3Wpk0ta8zG4Fsw= X-Received: by 2002:a05:6820:609:b0:696:15bf:ca5f with SMTP id 006d021491bc7-69b78d82eecmr1615367eaf.19.1778674377518; Wed, 13 May 2026 05:12:57 -0700 (PDT) Received: from houminxi ([72.244.37.221]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4355736dbc0sm15189442fac.11.2026.05.13.05.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2026 05:12:57 -0700 (PDT) From: Minxi Hou To: netdev@vger.kernel.org Cc: dev@openvswitch.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, aconole@redhat.com, echaudro@redhat.com, i.maximets@ovn.org, i.maximets@redhat.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org, Minxi Hou Subject: [PATCH net-next 0/5] selftests: openvswitch: pylint cleanup for ovs-dpctl.py Date: Wed, 13 May 2026 20:12:35 +0800 Message-ID: <20260513121240.2590767-1-houminxi@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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/20260512070841.1183581-2-houminxi@gmail.com/ 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(-) -- 2.53.0