Document mixed-line-ending limitation for fix={crlf,lf} with git.

This commit is contained in:
Marek Běl 2020-01-14 22:44:59 +01:00 committed by GitHub
parent 5df1a4bf6f
commit d25d0ed8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ Add this to your `.pre-commit-config.yaml`
- `--fix={auto,crlf,lf,no}`
- `auto` - Replaces automatically the most frequent line ending. This is the default argument.
- `crlf`, `lf` - Forces to replace line ending by respectively CRLF and LF.
- This option isn't compatible with git setup check-in LF check-out CRLF as git smudge this later than the hook is invoked.
- `no` - Checks if there is any mixed line ending without modifying any file.
- `name-tests-test` - Assert that files in tests/ end in `_test.py`.
- Use `args: ['--django']` to match `test*.py` instead.