Skip to content

Commit ac4ea5a

Browse files
author
Julian Vanden Broeck
committed
Reformat config.py default with ruff
1 parent 9d66f4b commit ac4ea5a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

config.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ def str_to_bool(value: str | None)->bool:
77

88

99
WTF_CSRF_ENABLED = False
10-
SECRET_KEY = os.environ.get('SECRET_KEY', 'aSup3rS33kret')
11-
DB_NAME = os.environ.get('DB_NAME', 'postgres')
12-
DB_USER = os.environ.get('DB_USER', 'postgres')
13-
DB_PASS = os.environ.get('DB_PASS', 'postgres')
14-
DB_SERVICE = os.environ.get('DB_SERVICE', '0.0.0.0')
15-
DB_PORT = os.environ.get('DB_PORT', 5432)
16-
SQLALCHEMY_DATABASE_URI = 'postgresql://{0}:{1}@{2}:{3}/{4}'.format(
10+
SECRET_KEY = os.environ.get("SECRET_KEY", "aSup3rS33kret")
11+
DB_NAME = os.environ.get("DB_NAME", "postgres")
12+
DB_USER = os.environ.get("DB_USER", "postgres")
13+
DB_PASS = os.environ.get("DB_PASS", "postgres")
14+
DB_SERVICE = os.environ.get("DB_SERVICE", "0.0.0.0")
15+
DB_PORT = os.environ.get("DB_PORT", 5432)
16+
SQLALCHEMY_DATABASE_URI = "postgresql://{0}:{1}@{2}:{3}/{4}".format(
1717
DB_USER, DB_PASS, DB_SERVICE, DB_PORT, DB_NAME
1818
)
1919
DEBUG_TB_INTERCEPT_REDIRECTS = str_to_bool(os.environ.get("DEBUG_TB_INTERCEPT_REDIRECTS"))

0 commit comments

Comments
 (0)