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 Apr 15, 2024
1 parent 98cc9f2 commit 7a3f967
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
Create Date: 2022-07-27 12:30:49.163648
"""

import sqlalchemy as sa
from alembic import op

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

import sqlalchemy as sa
from alembic import op

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

import sqlalchemy as sa
from alembic import op

12 changes: 4 additions & 8 deletions src/insight/metrics/base.py
Original file line number Diff line number Diff line change
@@ -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):
@@ -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
@@ -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):
@@ -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):
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

0 comments on commit 7a3f967

Please sign in to comment.