Unexpected change to imports when updating to isort 6.0.0 #2352
Open
Description
On Django, our isort
config is:
[tool.isort]
profile = "black"
default_section = "THIRDPARTY"
known_first_party = "django"
With isort==5.13.2
, the following imports are sorted as:
from django.db.models.sql.compiler import (
SQLAggregateCompiler,
SQLCompiler,
SQLDeleteCompiler,
)
from django.db.models.sql.compiler import SQLInsertCompiler as BaseSQLInsertCompiler
from django.db.models.sql.compiler import SQLUpdateCompiler
But on isort==6.0.0
, they are now sorted as:
from django.db.models.sql.compiler import (
SQLAggregateCompiler,
SQLCompiler,
SQLDeleteCompiler,
)
from django.db.models.sql.compiler import SQLInsertCompiler as BaseSQLInsertCompiler
from django.db.models.sql.compiler import (
SQLUpdateCompiler,
)
We don't believe this is a desirable change and so are pinned at 5.13.2
(Please let me know if you need more details. Our pr for reference: django/django#19109)
Metadata
Assignees
Labels
No labels