tox: add black (via pre-commit) to tests (#50927)
This commit is contained in:
parent
86399b0ecf
commit
a38b98b412
4
tox.ini
4
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
|
||||
|
|
Loading…
Reference in New Issue