isort and flake8

This commit is contained in:
Beverly Nguyen
2025-04-10 12:38:41 -07:00
parent 6dd44fdc2d
commit f8eb512aab
4 changed files with 4 additions and 5 deletions

View File

@@ -151,7 +151,7 @@
"filename": "app/config.py", "filename": "app/config.py",
"hashed_secret": "577a4c667e4af8682ca431857214b3a920883efc", "hashed_secret": "577a4c667e4af8682ca431857214b3a920883efc",
"is_verified": false, "is_verified": false,
"line_number": 121, "line_number": 120,
"is_secret": false "is_secret": false
} }
], ],
@@ -674,5 +674,5 @@
} }
] ]
}, },
"generated_at": "2025-04-10T19:35:01Z" "generated_at": "2025-04-10T19:38:31Z"
} }

View File

@@ -174,7 +174,7 @@ def _csp(config):
def create_app(application): def create_app(application):
@application.context_processor @application.context_processor
def inject_feature_flags(): def inject_feature_flags():
# this is where feature flags can be easily added as a dictionary within context # this is where feature flags can be easily added as a dictionary within context
feature_socket_enabled = application.config.get( feature_socket_enabled = application.config.get(
"FEATURE_SOCKET_ENABLED", False "FEATURE_SOCKET_ENABLED", False
) )

View File

@@ -88,7 +88,6 @@ class Config(object):
], ],
} }
FEATURE_SOCKET_ENABLED = getenv("FEATURE_SOCKET_ENABLED", "false") == "true" FEATURE_SOCKET_ENABLED = getenv("FEATURE_SOCKET_ENABLED", "false") == "true"

View File

@@ -4,8 +4,8 @@ from functools import partial
from flask import ( from flask import (
Response, Response,
current_app,
abort, abort,
current_app,
jsonify, jsonify,
redirect, redirect,
render_template, render_template,