diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2020-07-20 21:41:23 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2020-07-20 21:41:23 -0700 |
commit | 4ab8148950a37d2380ad608ed78e8a15c2b9558c (patch) | |
tree | 279676207568bb1f5b1c46ef709efc4381014b78 /README.md | |
parent | e3f924a13ab0db4ac15f45c6b94d9069ee3638aa (diff) | |
download | isort-4ab8148950a37d2380ad608ed78e8a15c2b9558c.tar.gz |
Resolves #1332: Additional documentation on discrepency between known_x and sections=X
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -339,6 +339,19 @@ no_lines_before=LOCALFOLDER would produce a section with both FIRSTPARTY and LOCALFOLDER modules combined. +**IMPORTANT NOTE**: It is very important to know when setting `known` sections that the naming +does not directly map for historical reasons. For custom settings, the only difference is +capitalization (`known_custom=custom` VS `sections=CUSTOM,...`) for all others reference the +following mapping: + + - `known_standard_library` : `STANDARD_LIBRARY` + - `known_future_library` : `FUTURE` + - `known_first_party`: `FIRSTPARTY` + - `known_third_party`: `THIRDPARTY` + - `known_local_folder`: `LOCALFOLDER` + +This will likely be changed in isort 6.0.0+ in a backwards compatible way. + Auto-comment import sections ============================ |