tox: add black (via pre-commit) to tests (#50927)
This commit is contained in:
parent
8bb319ec8a
commit
044de41420
4
tox.ini
4
tox.ini
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = py3-django111-coverage-pylint,py3-django22
|
||||
envlist = py3-django111-black-coverage-pylint,py3-django22
|
||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/welco/{env:BRANCH_NAME:}
|
||||
|
||||
[testenv]
|
||||
|
@ -27,6 +27,8 @@ deps =
|
|||
pyquery
|
||||
lxml
|
||||
git+https://git.entrouvert.org/debian/django-ckeditor.git
|
||||
black: pre-commit
|
||||
commands =
|
||||
pylint: ./pylint.sh welco/
|
||||
py.test {env:COVERAGE:} {posargs:tests/}
|
||||
black: pre-commit run black --all-files --show-diff-on-failure
|
||||
|
|
Loading…
Reference in New Issue