From a38b98b412831c494b5e0649ed3ff9ed175ace55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 15 Feb 2021 17:51:42 +0100 Subject: [PATCH] tox: add black (via pre-commit) to tests (#50927) --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 9f36549..4139259 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py3-junit-coverage +envlist = py3-black-junit-coverage toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle-montpellier-sig/{env:BRANCH_NAME:} [testenv] @@ -22,5 +22,7 @@ deps = pytest-cov pytest-django xmlschema<1.1 + black: pre-commit commands = py.test {posargs: {env:JUNIT:} {env:COVERAGE:} tests/} + black: pre-commit run black --all-files --show-diff-on-failure