Skip to content

Commit 9e9b4ad

Browse files
alexbarrosaquemy
authored andcommitted
chore(deps): fix numba package version, and filter warns (#1468)
* chore: fix numba package version, and filter warns * fix: skip isort linter on init
1 parent 8308e5a commit 9e9b4ad

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ typeguard>=2.13.2, <3
2424
imagehash==4.3.1
2525
wordcloud>=1.9.1
2626
dacite>=1.8
27+
numba>=0.56.0,<0.59.0

src/ydata_profiling/__init__.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
33
.. include:: ../../README.md
44
"""
5-
import importlib.util
65

7-
from ydata_profiling.compare_reports import compare
8-
from ydata_profiling.controller import pandas_decorator
9-
from ydata_profiling.profile_report import ProfileReport
10-
from ydata_profiling.version import __version__
6+
# ignore numba warnings
7+
import warnings # isort:skip # noqa
8+
from numba.core.errors import NumbaDeprecationWarning # isort:skip # noqa
9+
10+
warnings.simplefilter("ignore", category=NumbaDeprecationWarning)
11+
12+
import importlib.util # isort:skip # noqa
13+
14+
from ydata_profiling.compare_reports import compare # isort:skip # noqa
15+
from ydata_profiling.controller import pandas_decorator # isort:skip # noqa
16+
from ydata_profiling.profile_report import ProfileReport # isort:skip # noqa
17+
from ydata_profiling.version import __version__ # isort:skip # noqa
1118

1219
# backend
1320
import ydata_profiling.model.pandas # isort:skip # noqa

0 commit comments

Comments
 (0)