Skip to content

isort single-capital-letter name emits unexpected sorting diagnostic #20824

@bzoracler

Description

@bzoracler

Summary

Ruff says that the following is unsorted (see playground):

from mod import A, AA, AAA  # Import block is un-sorted or un-formatted (I001) [Ln 1, Col 1]
# ruff wants this instead: `AA, AAA, A`

However, this is OK (playground):

from mod import a, aa, aaa

Version

0.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    isortRelated to import sortingquestionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions