mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Add mixed-line-ending hook declaration
This commit is contained in:
parent
19377889df
commit
560e1c2e1b
4 changed files with 18 additions and 0 deletions
|
|
@ -54,6 +54,11 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- To remove the coding pragma pass `--remove` (useful in a python3-only codebase)
|
||||
- `flake8` - Run flake8 on your python files.
|
||||
- `forbid-new-submodules` - Prevent addition of new git submodules.
|
||||
- `mixed-line-ending` - Replaces or checks mixed line ending.
|
||||
- `--fix={auto,crlf,lf,no}`
|
||||
- `auto` - Replace automatically the most frequent line ending.
|
||||
- `crlf`, `lf` - Force to replace line ending by respectively CRLF and LF.
|
||||
- `no` - Checks if there is any mixed line ending.
|
||||
- `name-tests-test` - Assert that files in tests/ end in `_test.py`.
|
||||
- Use `args: ['--django']` to match `test*.py` instead.
|
||||
- `no-commit-to-branch` - Protect specific branches from direct checkins.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue