Add excluded lines for coverage and improve coverage

This commit is contained in:
P. Sai Vinay 2021-09-07 22:09:19 +05:30 committed by GitHub
parent a50c3657c4
commit 315f94b201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 12 deletions

View File

@ -27,18 +27,11 @@ except ImportError:
# pandas>=1.3.0
from pandas.core.dtypes.generic import ABCIndex
try: # pandas>=1.2.0
from pandas.plotting._matplotlib.tools import ( # type: ignore
create_subplots,
flatten_axes,
set_ticks_props,
)
except ImportError: # pandas<1.2.0
from pandas.plotting._matplotlib.tools import ( # type: ignore
_flatten as flatten_axes,
_set_ticks_props as set_ticks_props,
_subplots as create_subplots,
)
from pandas.plotting._matplotlib.tools import ( # type: ignore
create_subplots,
flatten_axes,
set_ticks_props,
)
from eland.utils import try_sort

View File

@ -110,6 +110,7 @@ def test(session, pandas_version: str):
"--cov-report",
"term-missing",
"--cov=eland/",
"--cov-config=setup.cfg",
"--doctest-modules",
"--nbval",
*(session.posargs or ("eland/", "tests/")),

View File

@ -2,3 +2,7 @@
profile = black
[mypy]
plugins = numpy.typing.mypy_plugin
[report]
exclude_lines=
@abstractmethod
if TYPE_CHECKING: