root: fix asgi import order

This commit is contained in:
Jens Langhammer 2020-11-11 22:35:40 +01:00
parent 54de5c981e
commit f0e6d6f417
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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]