From c4890e651b1c77c580aa8475710619ef043ba46f Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Wed, 1 Feb 2023 21:18:41 +0000 Subject: [PATCH] Suppress new pylint 2.16 errors in nfv pylint 2.16.0 was released on 2023-02-01 One of the new check is causing stx/nfv to fail tox pylint From the 2.16.0 release notes: Rename broad-except to broad-exception-caught and add new checker broad-exception-raised which will warn if general exceptions BaseException or Exception are raised. The fix is to suppress the new error code, and possibly fix it in a future task. Story: 2010531 Task: 47254 Signed-off-by: Al Bailey Change-Id: I3e353809943ffa66660bf39b99ecaf90f5f3fddc --- nfv/pylint.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nfv/pylint.rc b/nfv/pylint.rc index 60d6827e..c274d7a4 100755 --- a/nfv/pylint.rc +++ b/nfv/pylint.rc @@ -88,9 +88,10 @@ disable= W0613, # unused-argument W0621, # redefined-outer-name W0622, # redefined-builtin - W0703, # broad-except + W0703, # broad-except (renamed in pylint 2.16 to broad-exception-caught) W0706, # try-except-raise W0707, # raise-missing-from + W0719, # broad-exception-raised W1310, # format-string-without-interpolation W1401, # anomalous-backslash-in-string W1406, # redundant-u-string-prefix