Skip to content

templates.py imports fail the project's isort check #3577

Description

@brendancol

Summary

isort --check-only flags the import block in xrspatial/templates.py as incorrectly sorted. The project sets line_length = 100 for isort in setup.cfg but does not run it in CI, so the drift was not caught.

Details

The _template_data import wraps _UPS_NORTH_EPSG and _UPS_SOUTH_EPSG onto separate lines even though both fit on one line within the 100-column limit. flake8 is clean; only isort reports the block:

flake8 xrspatial/templates.py                      # no output
isort --check-only --diff xrspatial/templates.py   # reports the import block

Proposed fix

Apply isort's suggested ordering. Imports only, no change to runtime behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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