From d25d0ed8ac08311e31287875a4457e6dd8435d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20B=C4=9Bl?= <35807926+mkbel@users.noreply.github.com> Date: Tue, 14 Jan 2020 22:44:59 +0100 Subject: [PATCH] Document mixed-line-ending limitation for fix={crlf,lf} with git. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b0ea69b..fd62ffa 100644 --- a/README.md +++ b/README.md @@ -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.