mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 20:16:53 +00:00
Add encoding pragma hook. Resolves pre-commit/pre-commit#15
This commit is contained in:
parent
29bf11d136
commit
aa2ba6f94f
5 changed files with 165 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- `double-quote-string-fixer` - This hook replaces double quoted strings
|
||||
with single quoted strings.
|
||||
- `end-of-file-fixer` - Makes sure files end in a newline and only a newline.
|
||||
- `fix-encoding-pragma` - Add # -*- coding: utf-8 -*- to the top of python files
|
||||
- `flake8` - Run flake8 on your python files.
|
||||
- `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