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 Feb 5, 2024
1 parent 37ba3c8 commit b0ba982
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 @@ -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):
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
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 b0ba982

Please sign in to comment.