From 2217bf6676f13512ab734e9c3d6ab0db47e968ee Mon Sep 17 00:00:00 2001 From: Chris Kelley Date: Fri, 21 Apr 2023 09:43:52 +0100 Subject: [PATCH] Fix pylint failures in upstream CI. The new version of pylint (pylint-2.17.2-1.fc38) in F38 causes failures due to containing a configuration setting that will become invalid in pylint 3. The pylintrc file is future-proofed to work with pylint 3. overgeneral-exceptions now causes test failure rather than a warning, it has been disabled for now as there are many failures and it could take some time to go through them all individually and catch less general exceptions. --- tests/pylintrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pylintrc b/tests/pylintrc index aaf919dee56..4745e9fb4fd 100644 --- a/tests/pylintrc +++ b/tests/pylintrc @@ -47,7 +47,7 @@ extension-pkg-whitelist=ldap,lxml,nss # # C and R messages are disabled by default. To clean up the code, enable C and # R messages temporarily. -disable=W0511,W0105,W0142,C,R,W0232,W0707 +disable=W0511,W0105,W0142,C,R,W0232,W0707,W0719 [REPORTS] @@ -243,4 +243,4 @@ int-import-graph= # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception