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).
Summary
xrspatial/curvature.pydoes not satisfy the project's isort config (line_length = 100insetup.cfg).isort --check-only --diff xrspatial/curvature.pyreports the import block as incorrectly sorted.The module lists nine separate
from xrspatial.utils import ...lines and putsfrom xrspatial.dataset_support import supports_datasetafter them. isort wants the local imports grouped: one parenthesized import fromxrspatial.utils, withdataset_supportordered beforeutils.Details
flake8 xrspatial/curvature.pyis 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.utilsimports into a single parenthesized import sorted alphabetically, orderxrspatial.dataset_supportbeforexrspatial.utils, and keep the# local modulescomment above the first local import. No behavioural change.Found by the style sweep (Cat 4, isort, MEDIUM).