diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..515c10f9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: "https://github.com/ambv/black" + rev: "stable" + hooks: + - id: "black" + language_version: "python3.7" + diff --git a/src/requirements/dev.txt b/src/requirements/dev.txt index f341aada..714a1a31 100644 --- a/src/requirements/dev.txt +++ b/src/requirements/dev.txt @@ -4,3 +4,5 @@ django-debug-toolbar==2.1 factory_boy==2.12.0 coverage==4.5.4 codecov==2.0.15 +black==19.10b0 +