Skip to content

Commit 9e98388

Browse files
pre-commit-ci[bot]dopry
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cc000a4 commit 9e98388

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ _build
5454

5555
db.sqlite3
5656
venv/
57-
58-
/tests/app/idp/static
57+
58+
/tests/app/idp/static

tests/app/idp/idp/settings.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
https://docs.djangoproject.com/en/4.2/ref/settings/
1111
"""
1212

13-
import environ
1413
import os
1514
from pathlib import Path
1615

16+
import environ
1717

1818

1919
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -26,7 +26,9 @@
2626
SECRET_KEY=(str, "django-insecure-vri27@j_q62e2it4$xiy9ca!7@qgjkhhan(*zs&lz0k@yukbb3"),
2727
OAUTH2_PROVIDER_OIDC_ENABLED=(bool, True),
2828
OAUTH2_PROVIDER_OIDC_RP_INITIATED_LOGOUT_ENABLED=(bool, True),
29-
OAUTH2_PROVIDER_OIDC_RSA_PRIVATE_KEY=(str, """
29+
OAUTH2_PROVIDER_OIDC_RSA_PRIVATE_KEY=(
30+
str,
31+
"""
3032
-----BEGIN RSA PRIVATE KEY-----
3133
MIIJKAIBAAKCAgEAtd8X/v8pddKt+opMJZrhV4FH86gBTMPjTGXeAfKkQVf7KDUZ
3234
Ty90n+JMe2rvCUn+Nws9yy5vmtbkomQbj8Xs1kHJOVdCnH1L2HTkvM7BjTBmJ5vc
@@ -78,26 +80,26 @@
7880
dBCCnF8FP1yPW8UgGVGSeozmIMaJwSpl2srZUMkN1KlqHwzehrOn9Tn2grA9ue/i
7981
ipUMvb4Se0LDJnmFuv8v6gM6V4vyXkP855mNOiRHUOHOSKdQ3SeKrLlnR6I=
8082
-----END RSA PRIVATE KEY-----
81-
"""),
82-
OAUTH2_PROVIDER_SCOPES=(dict, {"openid": "OpenID Connect scope" }),
83-
OAUTH2_PROVIDER_ALLOWED_SCHEMES=(list, ["https", "http"]),
84-
OAUTHLIB_INSECURE_TRANSPORT=(bool, "1"),
85-
STATIC_ROOT=(str, BASE_DIR / "static"),
86-
STATIC_URL=(str, "static/"),
87-
TEMPLATES_DIRS=(list, [BASE_DIR / "templates"]),
88-
83+
""",
84+
),
85+
OAUTH2_PROVIDER_SCOPES=(dict, {"openid": "OpenID Connect scope"}),
86+
OAUTH2_PROVIDER_ALLOWED_SCHEMES=(list, ["https", "http"]),
87+
OAUTHLIB_INSECURE_TRANSPORT=(bool, "1"),
88+
STATIC_ROOT=(str, BASE_DIR / "static"),
89+
STATIC_URL=(str, "static/"),
90+
TEMPLATES_DIRS=(list, [BASE_DIR / "templates"]),
8991
)
9092

9193
# Quick-start development settings - unsuitable for production
9294
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
9395

9496
# SECURITY WARNING: keep the secret key used in production secret!
95-
SECRET_KEY = env('SECRET_KEY')
97+
SECRET_KEY = env("SECRET_KEY")
9698

9799
# SECURITY WARNING: don't run with debug turned on in production!
98-
DEBUG = env('DEBUG')
100+
DEBUG = env("DEBUG")
99101

100-
ALLOWED_HOSTS = env('ALLOWED_HOSTS')
102+
ALLOWED_HOSTS = env("ALLOWED_HOSTS")
101103

102104

103105
# Application definition

0 commit comments

Comments
 (0)