Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 1, 2024
1 parent 46ecc21 commit 613e78d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2022-07-27 12:30:49.163648
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-12-13 13:25:17.878689
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-09-14 12:25:17.878689
"""

import sqlalchemy as sa
from alembic import op

Expand Down
12 changes: 4 additions & 8 deletions src/insight/metrics/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,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):
Expand Down Expand Up @@ -256,8 +255,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
Expand Down Expand Up @@ -321,8 +319,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):
Expand Down Expand Up @@ -375,8 +372,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):
Expand Down
1 change: 1 addition & 0 deletions src/insight/metrics/metrics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module contains various metrics used across synthesized."""

import datetime as dt
import typing as ty

Expand Down

0 comments on commit 613e78d

Please sign in to comment.