summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tox.ini4
1 files changed, 3 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 579aece..88d9f0d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py3-django111-coverage-pylint,py3-django22
+envlist = py3-django111-black-coverage-pylint,py3-django22
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/welco/{env:BRANCH_NAME:}
[testenv]
@@ -27,6 +27,8 @@ deps =
pyquery
lxml
git+https://git.entrouvert.org/debian/django-ckeditor.git
+ black: pre-commit
commands =
pylint: ./pylint.sh welco/
py.test {env:COVERAGE:} {posargs:tests/}
+ black: pre-commit run black --all-files --show-diff-on-failure