Skip to content

Style: join backslash-continued import in geotiff test (isort)#3517

Merged
brendancol merged 2 commits into
mainfrom
deep-sweep-style-geotiff-2026-06-25
Jun 26, 2026
Merged

Style: join backslash-continued import in geotiff test (isort)#3517
brendancol merged 2 commits into
mainfrom
deep-sweep-style-geotiff-2026-06-25

Conversation

@brendancol

Copy link
Copy Markdown
Contributor

Fixes the one isort finding in the geotiff subpackage under the configured
line_length=100 (setup.cfg).

Category addressed: Cat 4 (isort import formatting).

xrspatial/geotiff/tests/unit/test_exception_exports_3265.py had a deferred
import written with a backslash continuation:

from xrspatial.geotiff._reader import \
    PixelSafetyLimitError as reader_pixel_err

Joined it onto one line (83 chars, under the 100-column limit) so
isort --check-only passes:

from xrspatial.geotiff._reader import PixelSafetyLimitError as reader_pixel_err

Formatting only, no behaviour change. flake8 over the whole geotiff subpackage
(source and tests) was already clean; isort now passes too. This was the only
finding from the style sweep of the subpackage.

The deferred reader re-export import in
xrspatial/geotiff/tests/unit/test_exception_exports_3265.py used a
backslash continuation but joins to 83 chars, under the configured
line_length=100, so isort wants it on one line. Formatting only, no
behaviour change. flake8 and isort are clean across the geotiff
subpackage after this change.

Also records the geotiff row in the style-sweep state CSV.
@brendancol

Copy link
Copy Markdown
Contributor Author

review-pr: no actionable findings.

Formatting-only change. One import in test_exception_exports_3265.py was reflowed from a backslash continuation onto a single 83-char line (under the line_length=100 limit), plus the style-sweep state CSV row. The domain checks (algorithm accuracy, NaN handling, dask/cupy parity, performance) do not apply to a test import reflow.

Verified: flake8 and isort --check-only both clean on xrspatial/geotiff/; test_exception_exports_3265.py passes 6/6.

Good to merge.

@brendancol brendancol merged commit 2c6cda2 into main Jun 26, 2026
10 checks passed
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