diff --git a/pyproject.toml b/pyproject.toml index 88005ec4a..8c985753f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,6 +124,9 @@ extension-pkg-allow-list=[ ] [tool.pylint."MESSAGES CONTROL"] +enable = [ + "useless-suppression", +] disable = [ # Ones we want to ignore "attribute-defined-outside-init", diff --git a/scrapy/interfaces.py b/scrapy/interfaces.py index 13a4d822d..b4f1d9394 100644 --- a/scrapy/interfaces.py +++ b/scrapy/interfaces.py @@ -1,4 +1,4 @@ -# pylint:disable=no-method-argument,no-self-argument +# pylint: disable=no-method-argument,no-self-argument from zope.interface import Interface diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py index 8bd1480ad..3ac330ae2 100644 --- a/tests/test_scheduler.py +++ b/tests/test_scheduler.py @@ -277,14 +277,12 @@ class DownloaderAwareSchedulerTestMixin: downloader = self.mock_crawler.engine.downloader while self.scheduler.has_pending_requests(): request = self.scheduler.next_request() - # pylint: disable=protected-access slot = downloader.get_slot_key(request) dequeued_slots.append(slot) downloader.increment(slot) requests.append(request) for request in requests: - # pylint: disable=protected-access slot = downloader.get_slot_key(request) downloader.decrement(slot)