Skip to content

Commit 4500592

Browse files
azory-ydatafabclmnt
authored andcommitted
fix(linting): code formatting
1 parent 028451e commit 4500592

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/ydata_profiling/profile_report.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@
4444
)
4545
from ydata_profiling.serialize_report import SerializeReport
4646
from ydata_profiling.utils.dataframe import hash_dataframe
47-
from ydata_profiling.utils.paths import get_config
48-
4947
from ydata_profiling.utils.logger import ProfilingLogger
48+
from ydata_profiling.utils.paths import get_config
5049

51-
logger = ProfilingLogger(name='ReportLogger')
50+
logger = ProfilingLogger(name="ReportLogger")
5251

5352

5453
@typechecked
@@ -205,8 +204,9 @@ def __initialize_dataframe(
205204
df: Optional[Union[pd.DataFrame, sDataFrame]], report_config: Settings
206205
) -> Optional[Union[pd.DataFrame, sDataFrame]]:
207206

208-
logger.info_def_report(dataframe=type(df),
209-
timeseries=report_config.vars.timeseries.active)
207+
logger.info_def_report(
208+
dataframe=type(df), timeseries=report_config.vars.timeseries.active
209+
)
210210

211211
if (
212212
df is not None

src/ydata_profiling/utils/common.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Common util functions (e.g. missing in Python)."""
2-
import contextlib
3-
42
import collections.abc
3+
import contextlib
54
import os
65
import platform
76
import subprocess
@@ -98,6 +97,7 @@ def convert_timestamp_to_datetime(timestamp: int) -> datetime:
9897
else:
9998
return datetime(1970, 1, 1) + timedelta(seconds=int(timestamp))
10099

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

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

126126
requests.get(request_message)
127-

src/ydata_profiling/utils/logger.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from ydata_profiling.utils.common import analytics_features
1010

11+
1112
class ProfilingLogger(logging.Logger):
1213
def __init__(self, name, level=logging.INFO):
1314
super().__init__(name, level)

0 commit comments

Comments
 (0)