tox: add black (via pre-commit) to tests
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2021-05-14 17:20:18 +02:00
parent 16367d186d
commit 885f9fe23a
1 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/hobo/{env:BRANCH_NAME:}
envlist = py3-django111-{hobo,multipublik,multitenant,schemas,authentic,passerelle},py3-django22-coverage-{hobo,multipublik,multitenant,schemas,authentic,passerelle}
envlist = py3-django111-{hobo,multipublik,multitenant,schemas,authentic,passerelle},py3-django22-coverage-{hobo,multipublik,multitenant,schemas,authentic,passerelle},py3-black
[testenv]
usedevelop = True
@ -56,6 +56,7 @@ deps:
xmlschema<1.1
enum34<=1.1.6
psycopg2-binary
black: pre-commit
commands =
./getlasso3.sh
hobo: py.test {env:JUNIT:} {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests/}
@ -64,3 +65,4 @@ commands =
multipublik: py.test {env:JUNIT:} {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests_multipublik/}
authentic: py.test {env:JUNIT:} {env:FAST:} {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests_authentic/}
passerelle: py.test {env:JUNIT:} {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests_passerelle/}
black: pre-commit run black --all-files --show-diff-on-failure