From 5182a6741e9642d8648a369b8df0a63d860d45f3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 21 Sep 2021 13:32:28 +0200 Subject: [PATCH] root: format pyproject Signed-off-by: Jens Langhammer --- pyproject.toml | 59 +++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 32 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 79c3c15e4..95e1750e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,13 +15,7 @@ force_to_top = "*" [tool.coverage.run] source = ["authentik"] relative_files = true -omit = [ - "*/asgi.py", - "manage.py", - "*/migrations/*", - "*/apps.py", - "website/", -] +omit = ["*/asgi.py", "manage.py", "*/migrations/*", "*/apps.py", "website/"] [tool.coverage.report] sort = "Cover" @@ -45,35 +39,36 @@ exclude_lines = [ show_missing = true [tool.pylint.master] -disable =[ - "arguments-differ", - "no-self-use", - "fixme", - "locally-disabled", - "too-many-ancestors", - "too-few-public-methods", - "import-outside-toplevel", - "bad-continuation", - "signature-differs", - "similarities", - "cyclic-import", - "protected-access", - "raise-missing-from", - # To preverse django's translation function we need to use %-formatting - "consider-using-f-string",] +disable = [ + "arguments-differ", + "no-self-use", + "fixme", + "locally-disabled", + "too-many-ancestors", + "too-few-public-methods", + "import-outside-toplevel", + "bad-continuation", + "signature-differs", + "similarities", + "cyclic-import", + "protected-access", + "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" -extension-pkg-whitelist=["lxml","xmlsec"] +load-plugins = ["pylint_django", "pylint.extensions.bad_builtin"] +django-settings-module = "authentik.root.settings" +extension-pkg-whitelist = ["lxml", "xmlsec"] # Allow constants to be shorter than normal (and lowercase, for settings.py) -const-rgx="[a-zA-Z0-9_]{1,40}$" +const-rgx = "[a-zA-Z0-9_]{1,40}$" -ignored-modules=["django-otp","binascii", "socket", "zlib"] -generated-members=["xmlsec.constants.*","xmlsec.tree.*","xmlsec.template.*"] -ignore="migrations" -max-attributes=12 -max-branches=20 +ignored-modules = ["django-otp", "binascii", "socket", "zlib"] +generated-members = ["xmlsec.constants.*", "xmlsec.tree.*", "xmlsec.template.*"] +ignore = "migrations" +max-attributes = 12 +max-branches = 20 [tool.pytest.ini_options] DJANGO_SETTINGS_MODULE = "authentik.root.settings"