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