Add pre-commit hooks for checking common problems

Este commit está contenido en:
Danielle McLean 2018-04-19 10:25:23 +10:00
padre 1cf0449371
commit 3142c6073c
Firmado por: 00dani
ID de clave GPG: 8EB789DDF3ABD240
Se han modificado 1 ficheros con 19 adiciones y 0 borrados

19
.pre-commit-config.yaml Archivo normal
Ver fichero

@ -0,0 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: autopep8-wrapper
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: flake8
- id: mixed-line-ending
args:
- --fix=lf
- id: name-tests-test
args:
- --django
- id: trailing-whitespace