From 57ee7d38e9da88ce4da9e83180dbd275a8a48a2c Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 30 Jul 2021 12:12:36 +0300 Subject: [PATCH] pylint: Enable useless-suppression https://pylint.pycqa.org/en/latest/user_guide/message-control.html#detecting-useless-disables: > As pylint gets better and false positives are removed, disables that became useless can accumulate and clutter the code. In order to clean them you can enable the useless-suppression warning. This doesn't enforce useless-suppression warnings as errors. The idea is cleanup of these warings on every Pylint's bump. Fixes: https://pagure.io/freeipa/issue/9117 Signed-off-by: Stanislav Levin Reviewed-By: Rob Crittenden --- pylintrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pylintrc b/pylintrc index 98a46324a..074ead298 100644 --- a/pylintrc +++ b/pylintrc @@ -28,10 +28,18 @@ valid-metaclass-classmethod-first-arg=cls enable= all, - python3 + python3, + useless-suppression, disable= - I, + bad-inline-option, + c-extension-no-member, + deprecated-pragma, + file-ignored, + locally-disabled, + raw-checker-failed, + suppressed-message, + use-symbolic-message-instead, duplicate-code, interface-not-implemented, no-self-use,