Add pre-commit hooks

See https://pre-commit.com/ for more information.
This commit is contained in:
Hugo Locurcio 2019-02-21 23:10:09 +01:00
parent ea5c016370
commit 7e1a72cd73
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

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