Built-in profiles for isortΒΆ
The following profiles are built into isort to allow easy interoperability with common projects and code styles.
To use any of the listed profiles, use isort --profile PROFILE_NAME from the command line, or profile=PROFILE_NAME in your configuration file.
#black
multi_line_output:
3include_trailing_comma:
Truesplit_on_trailing_comma:
Trueforce_grid_wrap:
0use_parentheses:
Trueensure_newline_before_comments:
Trueline_length:
88
#django
combine_as_imports:
Trueinclude_trailing_comma:
Truemulti_line_output:
5line_length:
79
#pycharm
multi_line_output:
3force_grid_wrap:
2lines_after_imports:
2
force_single_line:
Trueforce_sort_within_sections:
Truelexicographical:
Trueline_length:
1000single_line_exclusions:
('collections.abc', 'six.moves', 'typing', 'typing_extensions')order_by_type:
Falsegroup_by_package:
True
#open_stack
force_single_line:
Trueforce_sort_within_sections:
Truelexicographical:
True
#plone
Based on black with these tweaks:
force_alphabetical_sort:
Trueforce_single_line:
True
#attrs
atomic:
Trueforce_grid_wrap:
0include_trailing_comma:
Truelines_after_imports:
2lines_between_types:
1multi_line_output:
3use_parentheses:
True
#hug
multi_line_output:
3include_trailing_comma:
Trueforce_grid_wrap:
0use_parentheses:
Trueline_length:
100
#wemake
multi_line_output:
3include_trailing_comma:
Trueuse_parentheses:
Trueline_length:
80
#appnexus
multi_line_output:
3include_trailing_comma:
Truesplit_on_trailing_comma:
Trueforce_grid_wrap:
0use_parentheses:
Trueensure_newline_before_comments:
Trueline_length:
88force_sort_within_sections:
Trueorder_by_type:
Falsecase_sensitive:
Falsereverse_relative:
Truesort_relative_in_force_sorted_sections:
Truesections:
['FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'APPLICATION', 'LOCALFOLDER']no_lines_before:
'LOCALFOLDER'