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

This commit is contained in:
Frédéric Péters 2021-02-15 17:45:34 +01:00
parent 1cab06e861
commit 1f9aa7b373
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}/combo-plugin-gnm/{env:BRANCH_NAME:}
[testenv]
@ -28,5 +28,7 @@ deps =
django>=2.2,<2.3
https://git.entrouvert.org/debian/django-ckeditor.git/snapshot/django-ckeditor-main.tar.gz
https://git.entrouvert.org/combo.git/snapshot/combo-main.tar.gz
pre-commit
commands =
py.test {posargs: {env:JUNIT:} {env:COVERAGE:} tests/}
black: pre-commit run black --all-files --show-diff-on-failure