We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0805019 commit 7802b4fCopy full SHA for 7802b4f
tests/unit/test_ticketed_features.py
@@ -1029,3 +1029,33 @@ def test_isort_auto_detects_and_ignores_invalid_from_imports_issue_1688():
1029
from package3 import also_ok
1030
"""
1031
)
1032
+
1033
1034
+def test_isort_allows_reversing_sort_order_issue_1645():
1035
+ """isort allows reversing the sort order for those who prefer Z or longer imports first.
1036
+ see: https://github.com/PyCQA/isort/issues/1688
1037
+ """
1038
+ assert (
1039
+ isort.code(
1040
1041
+from xxx import (
1042
+ g,
1043
+ hi,
1044
+ def,
1045
+ abcd,
1046
+)
1047
+""",
1048
+ profile="black",
1049
+ reverse_sort=True,
1050
+ length_sort=True,
1051
+ line_length=20,
1052
+ )
1053
+ == """
1054
1055
1056
1057
1058
1059
1060
+"""
1061
0 commit comments