Add pre-commit hooks

See https://pre-commit.com/ for more information.
master
Hugo Locurcio 2019-03-06 21:25:59 +01:00
parent 7017708bd1
commit fe4009ad86
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 9 additions and 0 deletions

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

@ -0,0 +1,9 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=lf]