Skip to content

Commit 4cc3de1

Browse files
committed
fix: code style compliance
1 parent 77094fb commit 4cc3de1

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

generate_tokens.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
import secrets
6-
import string
76
from base64 import b64encode, urlsafe_b64encode
87
from os import urandom
98
from secrets import choice, token_hex

lemur.conf.py

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Reads environment variables and defaults to a value suitable for dev/test environment if not set
44
"""
55

6-
from os.path import abspath, dirname, realpath
6+
from os.path import abspath, dirname
77
from os import environ
88
# from typing import Dict, Any
99

@@ -21,7 +21,10 @@
2121
LOG_UPGRADE_FILE = environ.get("LOG_UPGRADE_FILE", "db_upgrade.log")
2222
LOG_REQUEST_HEADERS = environ.get("LOG_REQUEST_HEADERS", "False")
2323
LOG_SANITIZE_REQUEST_HEADERS = environ.get("LOG_SANITIZE_REQUEST_HEADERS", "True")
24-
LOG_REQUEST_HEADERS_SKIP_ENDPOINT = ["/metrics", "/healthcheck"] # These endpoints are noisy so skip them by default
24+
LOG_REQUEST_HEADERS_SKIP_ENDPOINT = [
25+
"/metrics",
26+
"/healthcheck",
27+
] # These endpoints are noisy so skip them by default
2528

2629
# This is the secret key used by flask session management
2730
SECRET_KEY = "e89dc56e5fa4214f52bfe4d8c84256209c559022da562fd5b1d1a70798923518"
@@ -46,27 +49,29 @@
4649
LEMUR_DEFAULT_ORGANIZATIONAL_UNIT = ""
4750
LEMUR_SECURITY_TEAM_EMAIL = ["admin@localhost"]
4851

49-
DIGICERT_CIS_API_KEY=""
50-
DIGICERT_API_KEY=""
51-
ENTRUST_API_USER=""
52-
GOOGLE_APPLICATION_CREDENTIALS=""
53-
DIGICERT_CIS_URL=""
54-
DIGICERT_URL=""
55-
ENTRUST_API_PASS=""
56-
DIGICERT_CIS_ROOTS=""
57-
DIGICERT_ORG_ID=""
58-
ENTRUST_URL=""
59-
DIGICERT_CIS_PROFILE_NAMES=""
60-
DIGICERT_ORDER_TYPE=""
61-
ENTRUST_ROOT=""
62-
ENTRUST_NAME=""
63-
DIGICERT_ROOT=""
64-
ENTRUST_EMAIL=""
65-
ENTRUST_PHONE=""
52+
DIGICERT_CIS_API_KEY = ""
53+
DIGICERT_API_KEY = ""
54+
ENTRUST_API_USER = ""
55+
GOOGLE_APPLICATION_CREDENTIALS = ""
56+
DIGICERT_CIS_URL = ""
57+
DIGICERT_URL = ""
58+
ENTRUST_API_PASS = ""
59+
DIGICERT_CIS_ROOTS = ""
60+
DIGICERT_ORG_ID = ""
61+
ENTRUST_URL = ""
62+
DIGICERT_CIS_PROFILE_NAMES = ""
63+
DIGICERT_ORDER_TYPE = ""
64+
ENTRUST_ROOT = ""
65+
ENTRUST_NAME = ""
66+
DIGICERT_ROOT = ""
67+
ENTRUST_EMAIL = ""
68+
ENTRUST_PHONE = ""
6669

6770

6871
# Database settings
69-
SQLALCHEMY_DATABASE_URI = environ.get("SQLALCHEMY_DATABASE_URI", "postgresql://lemur:lemur@localhost:5432/lemur")
72+
SQLALCHEMY_DATABASE_URI = environ.get(
73+
"SQLALCHEMY_DATABASE_URI", "postgresql://lemur:lemur@localhost:5432/lemur"
74+
)
7075
# SQLALCHEMY_ENABLE_FLASK_REPLICATED = False
7176
# SQLALCHEMY_TRACK_MODIFICATIONS = False
7277
# SQLALCHEMY_ECHO = True

0 commit comments

Comments
 (0)