root: update to isort 5
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
8155d88db7
commit
e202fd988b
|
@ -12,8 +12,8 @@ password_changed = Signal()
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def post_save_application(sender, instance, created: bool, **_):
|
def post_save_application(sender, instance, created: bool, **_):
|
||||||
"""Clear user's application cache upon application creation"""
|
"""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.api.applications import user_app_cache_key
|
||||||
|
from authentik.core.models import Application
|
||||||
|
|
||||||
if sender != Application:
|
if sender != Application:
|
||||||
return
|
return
|
||||||
|
|
|
@ -35,8 +35,8 @@ class AuthentikOutpostConfig(AppConfig):
|
||||||
def init_local_connection():
|
def init_local_connection():
|
||||||
"""Check if local kubernetes or docker connections should be created"""
|
"""Check if local kubernetes or docker connections should be created"""
|
||||||
from authentik.outposts.models import (
|
from authentik.outposts.models import (
|
||||||
KubernetesServiceConnection,
|
|
||||||
DockerServiceConnection,
|
DockerServiceConnection,
|
||||||
|
KubernetesServiceConnection,
|
||||||
)
|
)
|
||||||
|
|
||||||
if Path(SERVICE_TOKEN_FILENAME).exists():
|
if Path(SERVICE_TOKEN_FILENAME).exists():
|
||||||
|
|
|
@ -58,9 +58,7 @@ class EventMatcherPolicy(Policy):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def serializer(self) -> BaseSerializer:
|
def serializer(self) -> BaseSerializer:
|
||||||
from authentik.policies.event_matcher.api import (
|
from authentik.policies.event_matcher.api import EventMatcherPolicySerializer
|
||||||
EventMatcherPolicySerializer,
|
|
||||||
)
|
|
||||||
|
|
||||||
return EventMatcherPolicySerializer
|
return EventMatcherPolicySerializer
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ class AuthentikStageEmailConfig(AppConfig):
|
||||||
|
|
||||||
def validate_stage_templates(self):
|
def validate_stage_templates(self):
|
||||||
"""Ensure all stage's templates actually exist"""
|
"""Ensure all stage's templates actually exist"""
|
||||||
from authentik.stages.email.models import EmailStage, EmailTemplates
|
|
||||||
from authentik.events.models import Event, EventAction
|
from authentik.events.models import Event, EventAction
|
||||||
|
from authentik.stages.email.models import EmailStage, EmailTemplates
|
||||||
|
|
||||||
for stage in EmailStage.objects.all():
|
for stage in EmailStage.objects.all():
|
||||||
try:
|
try:
|
||||||
|
|
Reference in New Issue