Add pre-commit

This commit is contained in:
Christophe Mehay 2017-08-21 00:46:24 +02:00
parent 27dd14ab33
commit f206ea354c
8 changed files with 114 additions and 40 deletions

21
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,21 @@
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v0.9.1
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: flake8
args:
- --exclude=__init__.py
language_version: python3
- id: autopep8-wrapper
language_version: python3
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: git://github.com/asottile/reorder_python_imports
sha: v0.3.5
hooks:
- id: reorder-python-imports
language_version: python3