From 5ba1d34d0fbcabb86225d9250d69b2a7ee0665f2 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Tue, 7 Feb 2023 17:55:28 +0000 Subject: [PATCH] Fix failing zuul job caused by new pylint version A new error check was added to pylint, so it is being temporarily suppressed. The Exception checker in the pylint.rc was also reporting failures, so it has been modernized. Story: 2010531 Task: 47309 Signed-off-by: Al Bailey Change-Id: Ia7f03f427cf8260625319af49b784983674f5227 --- sw-patch/cgcs-patch/pylint.rc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sw-patch/cgcs-patch/pylint.rc b/sw-patch/cgcs-patch/pylint.rc index fc92ee06..5143eaf3 100644 --- a/sw-patch/cgcs-patch/pylint.rc +++ b/sw-patch/cgcs-patch/pylint.rc @@ -86,6 +86,7 @@ extension-pkg-whitelist=lxml # W0603 global-statement # W0703 broad-except # W0707 raise-missing-from +# W0719 broad-exception-raised # W1505 deprecated-method # W1514 unspecified-encoding # W3101 missing-timeout @@ -94,7 +95,7 @@ disable= C0103,C0114,C0115,C0116,C0201,C0206,C0209,C2801, R0205,R0402,R0801,R0902,R0903,R0904,R0911, R0912,R0913,R0914,R0915,R1702,R1705,R1714, R1715,R1722,R1724,R1725,R1732,R1735, - W0107,W0602,W0603,W0703,W0707,W1514,W3101 + W0107,W0602,W0603,W0703,W0707,W0719,W1514,W3101 [REPORTS] @@ -379,7 +380,7 @@ int-import-graph= [EXCEPTIONS] +# Exceptions that will emit a warning when caught. +overgeneral-exceptions=builtins.BaseException,builtins.Exception + -# Exceptions that will emit a warning when being caught. Defaults to -# "Exception" -overgeneral-exceptions=Exception