tox: add black (via pre-commit) to tests (#50927)

This commit is contained in:
Frédéric Péters 2021-02-15 17:51:42 +01:00
parent 86399b0ecf
commit a38b98b412
1 changed files with 3 additions and 1 deletions

View File

@ -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