Skip to content

Commit

Permalink
Improve docs on custom section ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydesl committed Oct 22, 2020
1 parent baf2844 commit ddd6196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ of:
FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
```

to your preference:
to your preference (omitting a default section may cause errors):

```ini
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER
Expand Down
4 changes: 3 additions & 1 deletion docs/configuration/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ Forces line endings to the specified value. If not set, values will be guessed p

## Sections

**No Description**
Specifies a custom ordering for sections. Any custom defined sections should also be
included in this ordering. Omitting any of the default sections from this tuple may
result in imports being incorrectly sorted or failure.

**Type:** Tuple
**Default:** `('FUTURE', 'STDLIB', 'THIRDPARTY', 'FIRSTPARTY', 'LOCALFOLDER')`
Expand Down

0 comments on commit ddd6196

Please sign in to comment.