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
1 changed files with 1 additions and 0 deletions

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).
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.
All newlines will be converted to line feeds (`\n`).
The following arguments are available:
- `--ignore-case` - fold lower case to upper case characters.