From c61324008d7991c62472b62b100c4f59c0bf58e3 Mon Sep 17 00:00:00 2001 From: "Paul J. Dorn" Date: Wed, 31 Jul 2024 03:30:37 +0200 Subject: [PATCH] lint: tighter scope of ignores --- .pylintrc | 7 ++----- tests/test_config.py | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pylintrc b/.pylintrc index bc2046c0c..d52118173 100644 --- a/.pylintrc +++ b/.pylintrc @@ -15,9 +15,8 @@ disable= bad-mcs-classmethod-argument, bare-except, broad-except, - duplicate-bases, duplicate-code, - eval-used, + superfluous-parens, fixme, import-error, import-outside-toplevel, @@ -47,9 +46,7 @@ disable= ungrouped-imports, unused-argument, useless-object-inheritance, - useless-import-alias, - comparison-with-callable, try-except-raise, consider-using-with, consider-using-f-string, - unspecified-encoding + unspecified-encoding, diff --git a/tests/test_config.py b/tests/test_config.py index c094f6a21..c565c7946 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -3,6 +3,9 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. +# config contains callables - comparing those is intended here +# pylint: disable=comparison-with-callable + import os import re import sys