Skip to content

geotiff: fix isort import ordering in _writers/eager.py#3330

Open
brendancol wants to merge 1 commit into
mainfrom
deep-sweep-style-geotiff-2026-06-14
Open

geotiff: fix isort import ordering in _writers/eager.py#3330
brendancol wants to merge 1 commit into
mainfrom
deep-sweep-style-geotiff-2026-06-14

Conversation

@brendancol

Copy link
Copy Markdown
Contributor

Closes #3329.

What

The geotiff subpackage has no flake8/isort gate in CI, so import-ordering drift lands unnoticed. The style sweep ran the project's configured tooling (flake8 with max-line-length=100, isort with line_length=100 from setup.cfg) across all 33 production files under xrspatial/geotiff/.

Findings

  • Cat 4 (isort), MEDIUM_writers/eager.py: the from .._validation import (...) block wrapped at roughly 80 columns instead of isort's 100-column packing. Reflowed to match. No behavioural change.

Everything else was clean:

  • flake8 baseline is 0 across all production files (no E/W/F codes).
  • Cat 5 grep is clean. The hits (== False in a comment, : dict/: list annotations, a type= keyword arg to socket.getaddrinfo) are false positives, not bare excepts, mutable defaults, comparisons, or shadowed builtins.

Verification

  • isort --check-only --diff clean after the fix.
  • flake8 clean.
  • Module import smoke test passes.

Import reformat only; no behavioural change is intended for any of the four backends. Found by the style sweep (/sweep-style, geotiff module).

The geotiff subpackage has no flake8/isort gate in CI. isort
(line_length=100 in setup.cfg) flagged the from .._validation import
block in _writers/eager.py wrapping at the wrong column. Reflow only,
no behavioural change.

Also records the 2026-06-14 style re-sweep result in the sweep-style
state CSV (geotiff row: flake8 baseline 0, Cat 4 isort only).
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label Jun 15, 2026
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.

geotiff: isort import-ordering drift in _writers/eager.py

1 participant