summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2021-02-15 16:52:32 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2021-02-15 16:52:32 (GMT)
commit044de414201f3ba95aa795e1aa7b20dd19fd2928 (patch)
tree483be5f0bfdf83c10556b7ee16e6b4caa0ed1ec5
parent8bb319ec8adf026ed8e1e0e06c3d3782a0628dcb (diff)
downloadwelco-044de414201f3ba95aa795e1aa7b20dd19fd2928.zip
welco-044de414201f3ba95aa795e1aa7b20dd19fd2928.tar.gz
welco-044de414201f3ba95aa795e1aa7b20dd19fd2928.tar.bz2
tox: add black (via pre-commit) to tests (#50927)
-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