Skip to content

Commit

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

to your preference:
to your preference (if defined, 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
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 unexpected sorting or an exception being raised.

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

0 comments on commit 1bb2576

Please sign in to comment.