root: update to isort 5

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-22 19:53:10 +01:00
parent 8155d88db7
commit e202fd988b
4 changed files with 4 additions and 6 deletions

View File

@ -12,8 +12,8 @@ password_changed = Signal()
# pylint: disable=unused-argument
def post_save_application(sender, instance, created: bool, **_):
"""Clear user's application cache upon application creation"""
from authentik.core.models import Application
from authentik.core.api.applications import user_app_cache_key
from authentik.core.models import Application
if sender != Application:
return

View File

@ -35,8 +35,8 @@ class AuthentikOutpostConfig(AppConfig):
def init_local_connection():
"""Check if local kubernetes or docker connections should be created"""
from authentik.outposts.models import (
KubernetesServiceConnection,
DockerServiceConnection,
KubernetesServiceConnection,
)
if Path(SERVICE_TOKEN_FILENAME).exists():

View File

@ -58,9 +58,7 @@ class EventMatcherPolicy(Policy):
@property
def serializer(self) -> BaseSerializer:
from authentik.policies.event_matcher.api import (
EventMatcherPolicySerializer,
)
from authentik.policies.event_matcher.api import EventMatcherPolicySerializer
return EventMatcherPolicySerializer

View File

@ -26,8 +26,8 @@ class AuthentikStageEmailConfig(AppConfig):
def validate_stage_templates(self):
"""Ensure all stage's templates actually exist"""
from authentik.stages.email.models import EmailStage, EmailTemplates
from authentik.events.models import Event, EventAction
from authentik.stages.email.models import EmailStage, EmailTemplates
for stage in EmailStage.objects.all():
try: