Skip to content

Style: fix E305 and isort import ordering in flood.py#3504

Merged
brendancol merged 1 commit into
xarray-contrib:mainfrom
brendancol:deep-sweep-style-flood-2026-06-25-01
Jun 26, 2026
Merged

Style: fix E305 and isort import ordering in flood.py#3504
brendancol merged 1 commit into
xarray-contrib:mainfrom
brendancol:deep-sweep-style-flood-2026-06-25-01

Conversation

@brendancol

Copy link
Copy Markdown
Contributor

Style sweep cleanup for xrspatial/flood.py. Two findings, both reported by the project's configured tooling (setup.cfg: flake8 max-line-length=100, isort line_length=100).

Categories addressed:

  • Cat 1 (flake8 E305): added the missing second blank line between _validate_mannings_n_dataarray and the NLCD_MANNINGS_N module-level assignment.
  • Cat 4 (isort): collapsed the from xrspatial.utils import (...) block to the configured line_length=100 form, matching the style other modules were brought to in earlier style sweeps.

No behavioural change. Both fixes are pure formatting.

Test plan:

  • flake8 xrspatial/flood.py clean
  • isort --check-only --diff xrspatial/flood.py clean
  • pytest xrspatial/tests/test_flood.py (88 passed)

Cat 1 (flake8 E305): add the missing second blank line between
_validate_mannings_n_dataarray and the NLCD_MANNINGS_N module-level
assignment.

Cat 4 (isort): collapse the from xrspatial.utils import block to the
configured line_length=100 form, matching the style other modules were
brought to in earlier style sweeps.

No behavioural change. flake8 + isort clean; 88 flood tests pass.
@brendancol brendancol merged commit 6af95d6 into xarray-contrib:main Jun 26, 2026
12 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