Skip to content

Commit

Permalink
fix(linting): code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
azory-ydata authored and fabclmnt committed May 7, 2024
1 parent 9b68e0c commit e1ff595
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/ydata_profiling/profile_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@
)
from ydata_profiling.serialize_report import SerializeReport
from ydata_profiling.utils.dataframe import hash_dataframe
from ydata_profiling.utils.paths import get_config

from ydata_profiling.utils.logger import ProfilingLogger
from ydata_profiling.utils.paths import get_config

logger = ProfilingLogger(name='ReportLogger')
logger = ProfilingLogger(name="ReportLogger")


@typechecked
Expand Down Expand Up @@ -205,8 +204,9 @@ def __initialize_dataframe(
df: Optional[Union[pd.DataFrame, sDataFrame]], report_config: Settings
) -> Optional[Union[pd.DataFrame, sDataFrame]]:

logger.info_def_report(dataframe=type(df),
timeseries=report_config.vars.timeseries.active)
logger.info_def_report(
dataframe=type(df), timeseries=report_config.vars.timeseries.active
)

if (
df is not None
Expand Down
5 changes: 2 additions & 3 deletions src/ydata_profiling/utils/common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Common util functions (e.g. missing in Python)."""
import contextlib

import collections.abc
import contextlib
import os
import platform
import subprocess
Expand Down Expand Up @@ -98,6 +97,7 @@ def convert_timestamp_to_datetime(timestamp: int) -> datetime:
else:
return datetime(1970, 1, 1) + timedelta(seconds=int(timestamp))


def analytics_features(dataframe, datatype: str, report_type: str):
endpoint = "https://packages.ydata.ai/ydata-profiling?"

Expand All @@ -124,4 +124,3 @@ def analytics_features(dataframe, datatype: str, report_type: str):
)

requests.get(request_message)

1 change: 1 addition & 0 deletions src/ydata_profiling/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from ydata_profiling.utils.common import analytics_features


class ProfilingLogger(logging.Logger):
def __init__(self, name, level=logging.INFO):
super().__init__(name, level)
Expand Down

0 comments on commit e1ff595

Please sign in to comment.