summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2020-07-20 21:41:23 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2020-07-20 21:41:23 -0700
commit4ab8148950a37d2380ad608ed78e8a15c2b9558c (patch)
tree279676207568bb1f5b1c46ef709efc4381014b78 /README.md
parente3f924a13ab0db4ac15f45c6b94d9069ee3638aa (diff)
downloadisort-4ab8148950a37d2380ad608ed78e8a15c2b9558c.tar.gz
Resolves #1332: Additional documentation on discrepency between known_x and sections=X
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index e5823509..0d48c551 100644
--- a/README.md
+++ b/README.md
@@ -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
============================