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

@ -92,6 +92,12 @@
entry: end-of-file-fixer
language: python
files: \.(c|cpp|html|erb|slim|haml|ejs|jade|js|coffee|json|rb|md|py|css|scss|less|sh|tmpl|txt|yaml|yml|pp)$
- id: fix-encoding-pragma
name: Fix python encoding pragma
language: python
entry: fix-encoding-pragma
description: 'Add # -*- coding: utf-8 -*- to the top of python files'
files: \.py$
- id: flake8
name: Flake8
description: This hook runs flake8.