Add pre-commit hooks

See https://pre-commit.com/ for more information.
This commit is contained in:
Hugo Locurcio 2019-02-21 23:11:06 +01:00
parent 74da77fb8c
commit aeafa56b89
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 6 additions and 0 deletions

6
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,6 @@
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace