tox: add black (via pre-commit) to tests (#50927)
This commit is contained in:
parent
1cab06e861
commit
1f9aa7b373
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}/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
|
||||
|
|
Loading…
Reference in New Issue