Skip to content

style(mahalanobis): drop unused import, fix isort drift#3582

Open
brendancol wants to merge 2 commits into
xarray-contrib:mainfrom
brendancol:deep-sweep-style-mahalanobis-2026-06-30
Open

style(mahalanobis): drop unused import, fix isort drift#3582
brendancol wants to merge 2 commits into
xarray-contrib:mainfrom
brendancol:deep-sweep-style-mahalanobis-2026-06-30

Conversation

@brendancol

Copy link
Copy Markdown
Contributor

Style-only cleanup of xrspatial/mahalanobis.py, limited to what flake8 and isort flag under the existing setup.cfg (max-line-length=100, line_length=100).

  • Cat 3 (F401): drop the unused is_dask_cupy import from xrspatial.utils.
  • Cat 4 (isort): reformat the xrspatial.utils import block to line_length=100.

No behaviour change. The removed name had no references in the module; dask+cupy dispatch goes through ArrayTypeFunctionMapping. flake8 and isort are clean after the change, and the 24 tests in test_mahalanobis.py pass.

Cat 3 (F401): remove unused is_dask_cupy import from xrspatial.utils.
Cat 4 (isort): reformat the xrspatial.utils import block to line_length=100.

flake8 and isort are clean after the change; no behaviour change.
dask+cupy dispatch goes through ArrayTypeFunctionMapping, not a direct
is_dask_cupy check, so the removed name had no references.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant