Skip to content

Fix flake8 E128 and isort drift in interpolate/_kriging.py#2918

Merged
brendancol merged 1 commit into
mainfrom
deep-sweep-style-interpolate-kriging-2026-06-04
Jun 4, 2026
Merged

Fix flake8 E128 and isort drift in interpolate/_kriging.py#2918
brendancol merged 1 commit into
mainfrom
deep-sweep-style-interpolate-kriging-2026-06-04

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

Closes #2916

Style cleanup for xrspatial/interpolate/_kriging.py. The project's configured tooling (setup.cfg: flake8 max-line-length=100, isort line_length=100) reports these but CI does not gate them.

  • Cat 1 (flake8 E128): re-indent the two _chunk_var kriging-predict continuation lines in _kriging_dask_numpy and _kriging_dask_cupy to the visual-indent column.
  • Cat 4 (isort): collapse the from xrspatial.utils import (...) block to one 88-char line.

No behavioural change. The edits are whitespace and import-layout only; they apply uniformly across the numpy/cupy/dask backend paths dispatched by ArrayTypeFunctionMapping.

Cat 2 (W-codes), Cat 3 (F-codes), and Cat 5 (bare except, mutable defaults, == None/== True, shadowed builtins) all came back clean.

Also records the interpolate-kriging row in .claude/sweep-style-state.csv.

Test plan:

  • flake8 xrspatial/interpolate/_kriging.py clean
  • isort --check-only xrspatial/interpolate/_kriging.py clean
  • pytest xrspatial/tests/test_interpolation.py -k kriging (14 passed)

Re-indent the two _chunk_var kriging-predict continuation lines in the
dask backends to the visual-indent column (E128), and collapse the
xrspatial.utils import block to one line under line_length=100 (isort).
Behaviour-neutral style cleanup. Also records the kriging row in the
style-sweep state file.
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label Jun 4, 2026
Copy link
Copy Markdown
Contributor Author

@brendancol brendancol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review: Fix flake8 E128 and isort drift in interpolate/_kriging.py

No blockers, suggestions, or nits.

The diff is whitespace and import-layout only:

  • Two E128 continuation lines re-indented to the visual-indent column in the _chunk_var helpers of _kriging_dask_numpy and _kriging_dask_cupy.
  • The xrspatial.utils import block collapsed to one 88-char line, under the configured 100.

No logic changed, so backend parity, NaN handling, and edge cases are unaffected. flake8 and isort are clean on the file and the 14 kriging tests pass.

The state-CSV row reordering is the expected effect of the row-sorted rewrite of .claude/sweep-style-state.csv; content for other modules is unchanged.

Checklist

  • No behavioural change (style-only)
  • flake8 + isort clean on the module
  • Existing kriging tests pass (14)
  • No new public API; README/docs unaffected

@brendancol brendancol merged commit a356d99 into main Jun 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance PR touches performance-sensitive code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Style: fix flake8 E128 and isort drift in interpolate/_kriging.py

1 participant