Skip to content

Commit 3971569

Browse files
authored
Merge pull request #820 from nuztalgia/patch-1
Alphabetize & clarify `file-contents-sorter` in README
2 parents 6b03546 + 14ac91f commit 3971569

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,18 @@ This hook replaces double quoted strings with single quoted strings.
114114
#### `end-of-file-fixer`
115115
Makes sure files end in a newline and only a newline.
116116

117+
#### `file-contents-sorter`
118+
Sort the lines in specified files (defaults to alphabetical).
119+
You must provide the target [`files`](https://pre-commit.com/#config-files) as input.
120+
Note that this hook WILL remove blank lines and does NOT respect any comments.
121+
117122
#### `fix-byte-order-marker`
118123
removes UTF-8 byte order marker
119124

120125
#### `fix-encoding-pragma`
121126
Add `# -*- coding: utf-8 -*-` to the top of python files.
122127
- To remove the coding pragma pass `--remove` (useful in a python3-only codebase)
123128

124-
#### `file-contents-sorter`
125-
Sort the lines in specified files (defaults to alphabetical).
126-
You must provide list of target files as input to it.
127-
Note that this hook WILL remove blank lines and does NOT respect any comments.
128-
129129
The following arguments are available:
130130
- `--ignore-case` - fold lower case to upper case characters.
131131
- `--unique` - ensure each line is unique.

0 commit comments

Comments
 (0)