You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52-3Lines changed: 52 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ isort your python imports for you so you don't have to.
11
11
12
12
isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections.
13
13
It provides a command line utility, Python library and [plugins for various editors](https://github.com/timothycrosley/isort/wiki/isort-Plugins) to quickly sort all your imports.
14
-
It currently cleanly supports Python 2.6 - 3.4 using pies (https://github.com/timothycrosley/pies) to achieve this without ugly hacks and/or py2to3.
14
+
It currently cleanly supports Python 2.6 - 3.5 using pies (https://github.com/timothycrosley/pies) to achieve this without ugly hacks and/or py2to3.
15
15
16
16
Before isort:
17
17
@@ -143,6 +143,7 @@ and puts them all at the top of the file grouped together by the type of import:
143
143
- Current Python Project
144
144
- Explicitly Local (. before import, as in: from . import x)
145
145
- Custom Separate Sections (Defined by forced_separate list in configuration file)
146
+
- Custom Sections (Defined by sections list in configuration file)
146
147
147
148
Inside of each section the imports are sorted alphabetically. isort automatically removes duplicate python imports,
148
149
and wraps long from imports to the specified line length (defaults to 80).
@@ -286,6 +287,26 @@ Will be produced instead of:
286
287
287
288
To enable this set 'balanced_wrapping' to True in your config or pass the -e option into the command line utility.
288
289
290
+
Custom Sections and Ordering
291
+
============================
292
+
293
+
You can change the section order with `sections` option from the default of:
0 commit comments