From 75b72ed53670cfe310f5bb97f680da692c4189b1 Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 20 May 2022 16:51:03 -0400 Subject: [PATCH] fixed mypy issue w/ burnettk --- .github/workflows/tests.yml | 2 +- noxfile.py | 2 +- src/spiff_workflow_webapp/config/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5edda276..19f44b97 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -143,7 +143,7 @@ jobs: container port: 3306 mysql version: "8.0" mysql database: "spiff_workflow_webapp_testing" - mysql root password: "password" + mysql root password: if: matrix.database == 'mysql' - name: Run Nox diff --git a/noxfile.py b/noxfile.py index 1dfb35e8..088700ea 100644 --- a/noxfile.py +++ b/noxfile.py @@ -34,7 +34,7 @@ nox.options.sessions = ( ) -def setup_database(session: Session): +def setup_database(session: Session) -> None: """Run database migrations against the database.""" session.env["FLASK_INSTANCE_PATH"] = os.path.join(os.getcwd(), "instance") session.env["FLASK_APP"] = "src/spiff_workflow_webapp" diff --git a/src/spiff_workflow_webapp/config/__init__.py b/src/spiff_workflow_webapp/config/__init__.py index f51e613b..cf3be230 100644 --- a/src/spiff_workflow_webapp/config/__init__.py +++ b/src/spiff_workflow_webapp/config/__init__.py @@ -23,7 +23,7 @@ def setup_config(app: Flask) -> None: else: app.config[ "SQLALCHEMY_DATABASE_URI" - ] = f"mysql+mysqlconnector://root:password@localhost/spiff_workflow_webapp_{app.env}" + ] = f"mysql+mysqlconnector://root:@localhost/spiff_workflow_webapp_{app.env}" try: app.config.from_object("spiff_workflow_webapp.config." + app.env)