| 1 |
Built-in profiles for isort |
| 2 |
======== |
| 3 |
|
| 4 |
The following profiles are built into isort to allow easy interoperability with |
| 5 |
common projects and code styles. |
| 6 |
|
| 7 |
To use any of the listed profiles, use `isort --profile PROFILE_NAME` from the command line, or `profile=PROFILE_NAME` in your configuration file. |
| 8 |
|
| 9 |
|
| 10 |
#black |
| 11 |
|
| 12 |
|
| 13 |
- **multi_line_output**: `3` |
| 14 |
- **include_trailing_comma**: `True` |
| 15 |
- **split_on_trailing_comma**: `True` |
| 16 |
- **force_grid_wrap**: `0` |
| 17 |
- **use_parentheses**: `True` |
| 18 |
- **ensure_newline_before_comments**: `True` |
| 19 |
- **line_length**: `88` |
| 20 |
|
| 21 |
#django |
| 22 |
|
| 23 |
|
| 24 |
- **combine_as_imports**: `True` |
| 25 |
- **include_trailing_comma**: `True` |
| 26 |
- **multi_line_output**: `5` |
| 27 |
- **line_length**: `79` |
| 28 |
|
| 29 |
#pycharm |
| 30 |
|
| 31 |
|
| 32 |
- **multi_line_output**: `3` |
| 33 |
- **force_grid_wrap**: `2` |
| 34 |
- **lines_after_imports**: `2` |
| 35 |
|
| 36 |
#google |
| 37 |
|
| 38 |
|
| 39 |
- **force_single_line**: `True` |
| 40 |
- **force_sort_within_sections**: `True` |
| 41 |
- **lexicographical**: `True` |
| 42 |
- **line_length**: `1000` |
| 43 |
- **single_line_exclusions**: `('collections.abc', 'six.moves', 'typing', 'typing_extensions')` |
| 44 |
- **order_by_type**: `False` |
| 45 |
- **group_by_package**: `True` |
| 46 |
|
| 47 |
#open_stack |
| 48 |
|
| 49 |
|
| 50 |
- **force_single_line**: `True` |
| 51 |
- **force_sort_within_sections**: `True` |
| 52 |
- **lexicographical**: `True` |
| 53 |
|
| 54 |
#plone |
| 55 |
|
| 56 |
Based on black with these tweaks: |
| 57 |
|
| 58 |
- **force_alphabetical_sort**: `True` |
| 59 |
- **force_single_line**: `True` |
| 60 |
|
| 61 |
#attrs |
| 62 |
|
| 63 |
|
| 64 |
- **atomic**: `True` |
| 65 |
- **force_grid_wrap**: `0` |
| 66 |
- **include_trailing_comma**: `True` |
| 67 |
- **lines_after_imports**: `2` |
| 68 |
- **lines_between_types**: `1` |
| 69 |
- **multi_line_output**: `3` |
| 70 |
- **use_parentheses**: `True` |
| 71 |
|
| 72 |
#hug |
| 73 |
|
| 74 |
|
| 75 |
- **multi_line_output**: `3` |
| 76 |
- **include_trailing_comma**: `True` |
| 77 |
- **force_grid_wrap**: `0` |
| 78 |
- **use_parentheses**: `True` |
| 79 |
- **line_length**: `100` |
| 80 |
|
| 81 |
#wemake |
| 82 |
|
| 83 |
|
| 84 |
- **multi_line_output**: `3` |
| 85 |
- **include_trailing_comma**: `True` |
| 86 |
- **use_parentheses**: `True` |
| 87 |
- **line_length**: `80` |
| 88 |
|
| 89 |
#appnexus |
| 90 |
|
| 91 |
|
| 92 |
- **multi_line_output**: `3` |
| 93 |
- **include_trailing_comma**: `True` |
| 94 |
- **split_on_trailing_comma**: `True` |
| 95 |
- **force_grid_wrap**: `0` |
| 96 |
- **use_parentheses**: `True` |
| 97 |
- **ensure_newline_before_comments**: `True` |
| 98 |
- **line_length**: `88` |
| 99 |
- **force_sort_within_sections**: `True` |
| 100 |
- **order_by_type**: `False` |
| 101 |
- **case_sensitive**: `False` |
| 102 |
- **reverse_relative**: `True` |
| 103 |
- **sort_relative_in_force_sorted_sections**: `True` |
| 104 |
- **sections**: `['FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'APPLICATION', 'LOCALFOLDER']` |
| 105 |
- **no_lines_before**: `'LOCALFOLDER'` |