root: format pyproject
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
da7635ae5c
commit
5182a6741e
|
@ -15,13 +15,7 @@ force_to_top = "*"
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
source = ["authentik"]
|
source = ["authentik"]
|
||||||
relative_files = true
|
relative_files = true
|
||||||
omit = [
|
omit = ["*/asgi.py", "manage.py", "*/migrations/*", "*/apps.py", "website/"]
|
||||||
"*/asgi.py",
|
|
||||||
"manage.py",
|
|
||||||
"*/migrations/*",
|
|
||||||
"*/apps.py",
|
|
||||||
"website/",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.coverage.report]
|
[tool.coverage.report]
|
||||||
sort = "Cover"
|
sort = "Cover"
|
||||||
|
@ -45,35 +39,36 @@ exclude_lines = [
|
||||||
show_missing = true
|
show_missing = true
|
||||||
|
|
||||||
[tool.pylint.master]
|
[tool.pylint.master]
|
||||||
disable =[
|
disable = [
|
||||||
"arguments-differ",
|
"arguments-differ",
|
||||||
"no-self-use",
|
"no-self-use",
|
||||||
"fixme",
|
"fixme",
|
||||||
"locally-disabled",
|
"locally-disabled",
|
||||||
"too-many-ancestors",
|
"too-many-ancestors",
|
||||||
"too-few-public-methods",
|
"too-few-public-methods",
|
||||||
"import-outside-toplevel",
|
"import-outside-toplevel",
|
||||||
"bad-continuation",
|
"bad-continuation",
|
||||||
"signature-differs",
|
"signature-differs",
|
||||||
"similarities",
|
"similarities",
|
||||||
"cyclic-import",
|
"cyclic-import",
|
||||||
"protected-access",
|
"protected-access",
|
||||||
"raise-missing-from",
|
"raise-missing-from",
|
||||||
# To preverse django's translation function we need to use %-formatting
|
# To preverse django's translation function we need to use %-formatting
|
||||||
"consider-using-f-string",]
|
"consider-using-f-string",
|
||||||
|
]
|
||||||
|
|
||||||
load-plugins=["pylint_django","pylint.extensions.bad_builtin"]
|
load-plugins = ["pylint_django", "pylint.extensions.bad_builtin"]
|
||||||
django-settings-module="authentik.root.settings"
|
django-settings-module = "authentik.root.settings"
|
||||||
extension-pkg-whitelist=["lxml","xmlsec"]
|
extension-pkg-whitelist = ["lxml", "xmlsec"]
|
||||||
|
|
||||||
# Allow constants to be shorter than normal (and lowercase, for settings.py)
|
# 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"]
|
ignored-modules = ["django-otp", "binascii", "socket", "zlib"]
|
||||||
generated-members=["xmlsec.constants.*","xmlsec.tree.*","xmlsec.template.*"]
|
generated-members = ["xmlsec.constants.*", "xmlsec.tree.*", "xmlsec.template.*"]
|
||||||
ignore="migrations"
|
ignore = "migrations"
|
||||||
max-attributes=12
|
max-attributes = 12
|
||||||
max-branches=20
|
max-branches = 20
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
DJANGO_SETTINGS_MODULE = "authentik.root.settings"
|
DJANGO_SETTINGS_MODULE = "authentik.root.settings"
|
||||||
|
|
Reference in a new issue