Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyX committed Aug 4, 2024
1 parent 3f18779 commit 14e2002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ repos:
types-requests,
types-setuptools,
types-mock,
types-decorator,
types-pytz,
# types-click,
# types-pkg_resources,
# types-requests,
Expand Down
4 changes: 2 additions & 2 deletions frontend/coprs_frontend/coprs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from coprs.redis_session import RedisSessionInterface
from coprs.request import get_request_class

app = flask.Flask(__name__)
app : flask.Flask = flask.Flask(__name__)
if "COPRS_ENVIRON_PRODUCTION" in os.environ:
app.config.from_object("coprs.config.ProductionConfig")
elif "COPRS_ENVIRON_UNITTEST" in os.environ:
Expand All @@ -42,7 +42,7 @@
session = Session(app)

# Set `future=True` to ensure compatibility between SQLAlchemy 1.x and 2.0
db = SQLAlchemy(app, engine_options={"future": True})
db : SQLAlchemy = SQLAlchemy(app, engine_options={"future": True})

@contextmanager
def db_session_scope():
Expand Down

0 comments on commit 14e2002

Please sign in to comment.