add pre-commit config for auto black

This commit is contained in:
Thomas Steen Rasmussen 2020-02-07 18:51:50 +01:00
parent 377a77143c
commit 3d790c33cb
2 changed files with 9 additions and 0 deletions

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

@ -0,0 +1,7 @@
repos:
- repo: "https://github.com/ambv/black"
rev: "stable"
hooks:
- id: "black"
language_version: "python3.7"

View file

@ -4,3 +4,5 @@ django-debug-toolbar==2.1
factory_boy==2.12.0 factory_boy==2.12.0
coverage==4.5.4 coverage==4.5.4
codecov==2.0.15 codecov==2.0.15
black==19.10b0