mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 18:46:53 +00:00
Merge pull request #437 from mkbel/document1
Document mixed-line-ending limitation for fix={crlf,lf} with git.
This commit is contained in:
commit
31853d6c43
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue