Add encoding pragma hook. Resolves pre-commit/pre-commit#15

This commit is contained in:
Anthony Sottile 2015-11-13 12:34:37 -08:00
parent 29bf11d136
commit aa2ba6f94f
5 changed files with 165 additions and 0 deletions

View file

@ -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.