resample: fix isort drift in import ordering#2545
Merged
Merged
Conversation
Mechanical isort fix only. flake8 and Cat 5 grep are clean; the only style finding for resample is import-ordering drift against the project's configured `line_length=100`. Changes: - Top-of-file `scipy.ndimage` imports: parenthesised multi-line -> one-per-line. - Top-of-file `xrspatial.utils` imports: collapsed to single line and reordered relative to `xrspatial.dataset_support`. - Local `cupyx.scipy.ndimage` imports inside `_nan_aware_interp_cupy` and `_interp_block_cupy`: parenthesised multi-line -> one-per-line. - Blank line after `import math` inside `_run_dask_numpy` and `_run_dask_cupy`. No behavioural change. 169 resample tests pass. Categories: Cat 4 (isort) -- MEDIUM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2543.
Summary
Mechanical isort fix only. flake8 and Cat 5 grep (bare except, mutable defaults,
== None, shadowed builtins) are clean. The only style finding flagged by the style sweep againstxrspatial/resample.pyis import-ordering drift against the project's configuredline_length=100insetup.cfg.Categories addressed
No Cat 1 (E-codes), Cat 2 (W-codes), Cat 3 (F-codes), or Cat 5 (bug-prone patterns).
Diff shape
scipy.ndimage: parenthesised multi-line -> one-per-line.xrspatial.utils: collapsed to a single line;xrspatial.dataset_supportreordered to come first.cupyx.scipy.ndimageimports inside_nan_aware_interp_cupyand_interp_block_cupy: parenthesised multi-line -> one-per-line.import mathinside_run_dask_numpyand_run_dask_cupy.No behavioural change is intended; no public API touched.
Verification
flake8 xrspatial/resample.py-- cleanisort --check-only xrspatial/resample.py-- cleanpytest xrspatial/tests/test_resample.py-- 169 passedTest plan
setup.cfgsetup.cfgpytest xrspatial/tests/test_resample.py-- 169 passed