Skip to content

Fix isort import-ordering drift in curvature.py #3388

@brendancol

Description

@brendancol

Summary

xrspatial/curvature.py does not satisfy the project's isort config (line_length = 100 in setup.cfg). isort --check-only --diff xrspatial/curvature.py reports the import block as incorrectly sorted.

The module lists nine separate from xrspatial.utils import ... lines and puts from xrspatial.dataset_support import supports_dataset after them. isort wants the local imports grouped: one parenthesized import from xrspatial.utils, with dataset_support ordered before utils.

Details

flake8 xrspatial/curvature.py is clean. No bare-except, mutable-default, or shadowed-builtin patterns are present. The isort ordering is the only style finding.

Proposed fix

Collapse the nine xrspatial.utils imports into a single parenthesized import sorted alphabetically, order xrspatial.dataset_support before xrspatial.utils, and keep the # local modules comment above the first local import. No behavioural change.

Found by the style sweep (Cat 4, isort, MEDIUM).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions