Add pre-commit config

This commit is contained in:
Jan Holthuis 2020-03-11 13:38:31 +01:00
parent ccf6113e28
commit 43b10754f4

14
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: trailing-whitespace
- id: flake8
- id: check-merge-conflict
- id: check-yaml
- id: check-executables-have-shebangs
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black