Closed sjsrey closed 2 months ago
Should we disable doctests for the _indices.py
module to get CI green?
@sjsrey shall we pick this back up again to get CI green?
Slight issue I see is that this warning is emitted by import inequality
even if you're not interacting with the indices module. We may need to emit it in the functions themselves. Maybe a decorator?
Looks like have a fresh exception being thrown by bleeding edge pandas
now. If it's not something to simply let ride, we can open a new ticket for it.
201 >>> import libpysal
UNEXPECTED EXCEPTION: ImportError("cannot import name 'CachedAccessor' from 'pandas.core.accessor' (/home/runner/micromamba/envs/test/lib/python3.12/site-packages/pandas/core/accessor.py)")
Traceback (most recent call last):
File "/home/runner/micromamba/envs/test/lib/python3.12/doctest.py", line 1361, in __run
exec(compile(example.source, filename, "single",
File "<doctest inequality.theil.TheilDSim[0]>", line 1, in <module>
File "/home/runner/micromamba/envs/test/lib/python3.12/site-packages/libpysal/__init__.py", line 27, in <module>
from . import cg, examples, io, weights
File "/home/runner/micromamba/envs/test/lib/python3.12/site-packages/libpysal/cg/__init__.py", line 12, in <module>
from .voronoi import *
File "/home/runner/micromamba/envs/test/lib/python3.12/site-packages/libpysal/cg/voronoi.py", line 10, in <module>
import geopandas as gpd
File "/home/runner/micromamba/envs/test/lib/python3.12/site-packages/geopandas/__init__.py", line 4, in <module>
from geopandas.geodataframe import GeoDataFrame
File "/home/runner/micromamba/envs/test/lib/python3.12/site-packages/geopandas/geodataframe.py", line 8, in <module>
from pandas.core.accessor import CachedAccessor
ImportError: cannot import name 'CachedAccessor' from 'pandas.core.accessor' (/home/runner/micromamba/envs/test/lib/python3.12/site-packages/pandas/core/accessor.py)
/home/runner/work/inequality/inequality/inequality/theil.py:201: UnexpectedException
Should we disable doctests for the
_indices.py
module to get CI green?
We still need to address these failures, either by skipping or updating.
@jGaboardi that is fixed by https://github.com/geopandas/geopandas/pull/3288
The remaining failure is related to codecov on macos-13.
@jGaboardi any suggestions?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.2%. Comparing base (
eb15ef6
) to head (9a28ef2
). Report is 3 commits behind head on main.
Seems that it's actually pre-commit
that's complaining. Did you run ruff check inequality
locally before pushing?
pre-commit.ci run
pre-commit.ci autofix
The bot is having trouble auto fixing the import sorting for some reason. Running ruff check inequality --fix
locally should resolve the issue.
pre-commit.ci autofix
xref #67