mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 12:26:52 +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
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue