From b1e68de5ee29df34ec62aee49a9cf2a311ea87c2 Mon Sep 17 00:00:00 2001 From: Alex Hadley Date: Wed, 29 Mar 2023 12:25:20 -0700 Subject: [PATCH] Fix format and linting --- .../pipeline/params/persistence/sqlalchemy/alembic/env.py | 2 -- .../params/persistence/sqlalchemy/sqlalchemypersistence.py | 2 +- entropylab/pipeline/results_backend/sqlalchemy/alembic/env.py | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/entropylab/pipeline/params/persistence/sqlalchemy/alembic/env.py b/entropylab/pipeline/params/persistence/sqlalchemy/alembic/env.py index 9af53b51..8f1178e4 100644 --- a/entropylab/pipeline/params/persistence/sqlalchemy/alembic/env.py +++ b/entropylab/pipeline/params/persistence/sqlalchemy/alembic/env.py @@ -1,8 +1,6 @@ from logging.config import fileConfig from alembic import context -from sqlalchemy import engine_from_config -from sqlalchemy import pool from entropylab.pipeline.params.persistence.sqlalchemy.model import Base diff --git a/entropylab/pipeline/params/persistence/sqlalchemy/sqlalchemypersistence.py b/entropylab/pipeline/params/persistence/sqlalchemy/sqlalchemypersistence.py index bec985ce..6df189de 100644 --- a/entropylab/pipeline/params/persistence/sqlalchemy/sqlalchemypersistence.py +++ b/entropylab/pipeline/params/persistence/sqlalchemy/sqlalchemypersistence.py @@ -62,7 +62,7 @@ def close(self): def get_commit( self, commit_id: Optional[str] = None, commit_num: Optional[int] = None - ): + ): if commit_id: with self.__session_maker() as session: commit = ( diff --git a/entropylab/pipeline/results_backend/sqlalchemy/alembic/env.py b/entropylab/pipeline/results_backend/sqlalchemy/alembic/env.py index bb8ccfd9..3c78ea1b 100644 --- a/entropylab/pipeline/results_backend/sqlalchemy/alembic/env.py +++ b/entropylab/pipeline/results_backend/sqlalchemy/alembic/env.py @@ -1,8 +1,6 @@ from logging.config import fileConfig from alembic import context -from sqlalchemy import engine_from_config -from sqlalchemy import pool # this is the Alembic Config object, which provides # access to the values within the .ini file in use.