diff --git a/.prospector.yaml b/.prospector.yaml index 219f6ac..0753272 100644 --- a/.prospector.yaml +++ b/.prospector.yaml @@ -5,3 +5,11 @@ ignore-paths: pycodestyle: options: max-line-length: 142 + +pylint: + disable: + - django-not-configured + +pyflakes: + disable: + - F401 diff --git a/axes/apps.py b/axes/apps.py index 1fa3094..a2c0834 100644 --- a/axes/apps.py +++ b/axes/apps.py @@ -1,3 +1,5 @@ +# pylint: disable=import-outside-toplevel, unused-import + from logging import getLogger from django import apps @@ -26,8 +28,8 @@ class AppConfig(apps.AppConfig): cls.initialized = True # Only import settings, checks, and signals one time after Django has been initialized - from axes.conf import settings # noqa - from axes import checks, signals # noqa + from axes.conf import settings + from axes import checks, signals # Skip startup log messages if Axes is not set to verbose if settings.AXES_VERBOSE: diff --git a/axes/handlers/test.py b/axes/handlers/test.py index bea66b3..5213e2c 100644 --- a/axes/handlers/test.py +++ b/axes/handlers/test.py @@ -2,7 +2,7 @@ from axes.handlers.base import AxesHandler from typing import Optional -class AxesTestHandler(AxesHandler): # pylint: disable=unused-argument +class AxesTestHandler(AxesHandler): """ Signal handler implementation that does nothing, ideal for a test suite. """ diff --git a/requirements-qa.txt b/requirements-qa.txt index 2eda95a..f0ac01f 100644 --- a/requirements-qa.txt +++ b/requirements-qa.txt @@ -1,4 +1,4 @@ black==22.10.0 mypy==0.991 -prospector==1.7.7 +prospector==1.8.2 types-pkg_resources # Type stub