Update prospector to 1.8.2

This commit is contained in:
Hasan Ramezani 2022-12-02 13:26:35 +01:00 committed by Aleksi Häkli
parent b65482ec98
commit c8f831bb62
4 changed files with 14 additions and 4 deletions

View file

@ -5,3 +5,11 @@ ignore-paths:
pycodestyle: pycodestyle:
options: options:
max-line-length: 142 max-line-length: 142
pylint:
disable:
- django-not-configured
pyflakes:
disable:
- F401

View file

@ -1,3 +1,5 @@
# pylint: disable=import-outside-toplevel, unused-import
from logging import getLogger from logging import getLogger
from django import apps from django import apps
@ -26,8 +28,8 @@ class AppConfig(apps.AppConfig):
cls.initialized = True cls.initialized = True
# Only import settings, checks, and signals one time after Django has been initialized # Only import settings, checks, and signals one time after Django has been initialized
from axes.conf import settings # noqa from axes.conf import settings
from axes import checks, signals # noqa from axes import checks, signals
# Skip startup log messages if Axes is not set to verbose # Skip startup log messages if Axes is not set to verbose
if settings.AXES_VERBOSE: if settings.AXES_VERBOSE:

View file

@ -2,7 +2,7 @@ from axes.handlers.base import AxesHandler
from typing import Optional 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. Signal handler implementation that does nothing, ideal for a test suite.
""" """

View file

@ -1,4 +1,4 @@
black==22.10.0 black==22.10.0
mypy==0.991 mypy==0.991
prospector==1.7.7 prospector==1.8.2
types-pkg_resources # Type stub types-pkg_resources # Type stub