Add pre-commit hooks for checking common problems

这个提交包含在:
Danielle McLean 2018-04-19 10:25:23 +10:00
父节点 1cf0449371
当前提交 3142c6073c
签署人:: 00dani
GPG 密钥 ID: 8EB789DDF3ABD240
共有 1 个文件被更改,包括 19 次插入0 次删除

19
.pre-commit-config.yaml 普通文件
查看文件

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