diff --git a/src/insight/alembic/versions/9aca5ae68ff5_add_initial_tables.py b/src/insight/alembic/versions/9aca5ae68ff5_add_initial_tables.py index 80211c87..ce00710a 100644 --- a/src/insight/alembic/versions/9aca5ae68ff5_add_initial_tables.py +++ b/src/insight/alembic/versions/9aca5ae68ff5_add_initial_tables.py @@ -5,6 +5,7 @@ Create Date: 2022-07-27 12:30:49.163648 """ + import sqlalchemy as sa from alembic import op diff --git a/src/insight/alembic/versions/a2198ae60b44_added_version_name_unique_constaint.py b/src/insight/alembic/versions/a2198ae60b44_added_version_name_unique_constaint.py index d8155847..1b17f080 100644 --- a/src/insight/alembic/versions/a2198ae60b44_added_version_name_unique_constaint.py +++ b/src/insight/alembic/versions/a2198ae60b44_added_version_name_unique_constaint.py @@ -5,6 +5,7 @@ Create Date: 2023-12-13 13:25:17.878689 """ + import sqlalchemy as sa from alembic import op diff --git a/src/insight/alembic/versions/d2198fd60b0e_added_result_run_id.py b/src/insight/alembic/versions/d2198fd60b0e_added_result_run_id.py index 2ff658e1..3b2142fb 100644 --- a/src/insight/alembic/versions/d2198fd60b0e_added_result_run_id.py +++ b/src/insight/alembic/versions/d2198fd60b0e_added_result_run_id.py @@ -5,6 +5,7 @@ Create Date: 2023-09-14 12:25:17.878689 """ + import sqlalchemy as sa from alembic import op diff --git a/src/insight/metrics/base.py b/src/insight/metrics/base.py index 23ad86d1..f72ab4c7 100644 --- a/src/insight/metrics/base.py +++ b/src/insight/metrics/base.py @@ -181,8 +181,7 @@ def check_column_types(cls, sr: pd.Series, check: Check = ColumnCheck()) -> bool ... @abstractmethod - def _compute_metric(self, sr: pd.Series): - ... + def _compute_metric(self, sr: pd.Series): ... def __call__(self, sr: pd.Series, dataset_name: ty.Optional[str] = None, session=None): if not self.check_column_types(sr, self.check): @@ -252,8 +251,7 @@ def check_column_types(cls, sr_a: pd.Series, sr_b: pd.Series, check: Check = Col ... @abstractmethod - def _compute_metric(self, sr_a: pd.Series, sr_b: pd.Series): - ... + def _compute_metric(self, sr_a: pd.Series, sr_b: pd.Series): ... def __call__( self, sr_a: pd.Series, sr_b: pd.Series, dataset_name: ty.Optional[str] = None, session=None @@ -317,8 +315,7 @@ def __call__( return result @abstractmethod - def _compute_result(self, df: pd.DataFrame): - ... + def _compute_result(self, df: pd.DataFrame): ... @abstractmethod def summarize_result(self, result): @@ -371,8 +368,7 @@ def __call__( return result @abstractmethod - def _compute_result(self, df_old, df_new): - ... + def _compute_result(self, df_old, df_new): ... @abstractmethod def summarize_result(self, result): diff --git a/src/insight/metrics/metrics.py b/src/insight/metrics/metrics.py index 9f4d1cc8..057d9838 100644 --- a/src/insight/metrics/metrics.py +++ b/src/insight/metrics/metrics.py @@ -1,4 +1,5 @@ """This module contains various metrics used across synthesized.""" + import datetime as dt import typing as ty