From 37390b0596ae1bdaaae0a6f82576caff6f578b0e 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:07 +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 74e3c81..097b6ff 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-encombrants/{env:BRANCH_NAME:} [testenv] @@ -21,5 +21,7 @@ deps = pytest pytest-cov pytest-django + black: pre-commit commands = py.test {posargs: {env:JUNIT:} {env:COVERAGE:} tests/} + black: pre-commit run black --all-files --show-diff-on-failure