diff --git a/passbook/lib/sentry.py b/passbook/lib/sentry.py index 598eb7a69..c919d6a11 100644 --- a/passbook/lib/sentry.py +++ b/passbook/lib/sentry.py @@ -1,5 +1,5 @@ """passbook sentry integration""" -from aioredis.errors import ReplyError, ConnectionClosedError +from aioredis.errors import ConnectionClosedError, ReplyError from billiard.exceptions import WorkerLostError from botocore.client import ClientError from celery.exceptions import CeleryError diff --git a/passbook/root/asgi.py b/passbook/root/asgi.py index 29099f0bf..ec5598b60 100644 --- a/passbook/root/asgi.py +++ b/passbook/root/asgi.py @@ -18,13 +18,15 @@ from django.core.asgi import get_asgi_application from sentry_sdk.integrations.asgi import SentryAsgiMiddleware from structlog import get_logger -from passbook.root import websocket - # DJANGO_SETTINGS_MODULE is set in gunicorn.conf.py defuse_stdlib() django.setup() +# pylint: disable=wrong-import-position +from passbook.root import websocket # noqa # isort:skip + + # See https://github.com/encode/starlette/blob/master/starlette/types.py Scope = typing.MutableMapping[str, typing.Any] Message = typing.MutableMapping[str, typing.Any]