Skip to content

Commit 31853d6

Browse files
authored
Merge pull request #437 from mkbel/document1
Document mixed-line-ending limitation for fix={crlf,lf} with git.
2 parents 5df1a4b + d25d0ed commit 31853d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

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

0 commit comments

Comments
 (0)