diff --git a/Pipfile.lock b/Pipfile.lock index 353b7b619..a58325c2e 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1410,11 +1410,11 @@ }, "astroid": { "hashes": [ - "sha256:3b680ce0419b8a771aba6190139a3998d14b413852506d99aff8dc2bf65ee67c", - "sha256:dc1e8b28427d6bbef6b8842b18765ab58f558c42bb80540bd7648c98412af25e" + "sha256:dcc06f6165f415220013801642bd6c9808a02967070919c4b746c6864c205471", + "sha256:fe81f80c0b35264acb5653302ffbd935d394f1775c5e4487df745bf9c2442708" ], "markers": "python_version ~= '3.6'", - "version": "==2.7.3" + "version": "==2.8.0" }, "attrs": { "hashes": [ @@ -1666,11 +1666,11 @@ }, "pylint": { "hashes": [ - "sha256:6758cce3ddbab60c52b57dcc07f0c5d779e5daf0cf50f6faacbef1d3ea62d2a1", - "sha256:e178e96b6ba171f8ef51fbce9ca30931e6acbea4a155074d80cc081596c9e852" + "sha256:0f358e221c45cbd4dad2a1e4b883e75d28acdcccd29d40c76eb72b307269b126", + "sha256:2c9843fff1a88ca0ad98a256806c82c5a8f86086e7ccbdb93297d86c3f90c436" ], "index": "pypi", - "version": "==2.10.2" + "version": "==2.11.1" }, "pylint-django": { "hashes": [ @@ -1848,6 +1848,14 @@ "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==0.10.2" }, + "typing-extensions": { + "hashes": [ + "sha256:49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e", + "sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7", + "sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34" + ], + "version": "==3.10.0.2" + }, "urllib3": { "extras": [ "secure" diff --git a/authentik/root/settings.py b/authentik/root/settings.py index 93417192d..44d34bab1 100644 --- a/authentik/root/settings.py +++ b/authentik/root/settings.py @@ -529,7 +529,7 @@ for _app in INSTALLED_APPS: if "apps" in _app: _app = ".".join(_app.split(".")[:-2]) try: - app_settings = importlib.import_module("%s.settings" % _app) + app_settings = importlib.import_module(f"{_app}.settings") INSTALLED_APPS.extend(getattr(app_settings, "INSTALLED_APPS", [])) MIDDLEWARE.extend(getattr(app_settings, "MIDDLEWARE", [])) AUTHENTICATION_BACKENDS.extend(getattr(app_settings, "AUTHENTICATION_BACKENDS", [])) diff --git a/pyproject.toml b/pyproject.toml index 63fe19cf8..79c3c15e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,7 +58,9 @@ disable =[ "similarities", "cyclic-import", "protected-access", - "raise-missing-from",] + "raise-missing-from", + # To preverse django's translation function we need to use %-formatting + "consider-using-f-string",] load-plugins=["pylint_django","pylint.extensions.bad_builtin"] django-settings-module="authentik.root.settings"