tox: update tox.ini file (#61513)

This commit is contained in:
Paul Marillonnet 2022-02-07 18:30:08 +01:00
parent 233df53ac6
commit 150156e957
1 changed files with 22 additions and 1 deletions

23
tox.ini
View File

@ -10,8 +10,10 @@ envlist =
[tox:jenkins]
envlist =
pylint
py3-dj22-drf3{9,12}
check-migrations
code-style
pylint
[testenv]
@ -56,6 +58,25 @@ commands =
./check-migrations.sh
py.test {env:COVERAGE:} {env:JUNIT:} {tty:--sw:} {posargs:tests/}
[testenv:check-migrations]
basepython = python3
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=authentic2.settings
SETUPTOOLS_USE_DISTUTILS=stdlib
deps =
psycopg2-binary
commands =
./getlasso3.sh
./check-migrations.sh
[testenv:code-style]
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:pylint]
usedevelop = true
basepython = python3