Merge pull request #961 from Maetveis/document-sort-line-ending

Document newline behavior of `file-contents-sorter`
This commit is contained in:
Anthony Sottile 2023-09-14 16:13:13 -04:00 committed by GitHub
commit 7501a4639f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,6 +117,7 @@ Makes sure files end in a newline and only a newline.
Sort the lines in specified files (defaults to alphabetical). Sort the lines in specified files (defaults to alphabetical).
You must provide the target [`files`](https://pre-commit.com/#config-files) as input. You must provide the target [`files`](https://pre-commit.com/#config-files) as input.
Note that this hook WILL remove blank lines and does NOT respect any comments. Note that this hook WILL remove blank lines and does NOT respect any comments.
All newlines will be converted to line feeds (`\n`).
The following arguments are available: The following arguments are available:
- `--ignore-case` - fold lower case to upper case characters. - `--ignore-case` - fold lower case to upper case characters.