Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,mypy,py3 | envlist=flake8,mypy,py3 | ||||
[testenv] | [testenv] | ||||
extras = | extras = | ||||
testing | testing | ||||
deps = | deps = | ||||
# the dependency below is needed for now as a workaround for | # the dependency below is needed for now as a workaround for | ||||
# https://github.com/pypa/pip/issues/6239 | # https://github.com/pypa/pip/issues/6239 | ||||
swh.core[http] >= 0.0.75 | swh.core[http] >= 0.0.75 | ||||
dev: ipdb | dev: ipdb | ||||
pytest-cov | pytest-cov | ||||
pifpaf | |||||
commands = | commands = | ||||
pifpaf run postgresql -- \ | |||||
pytest \ | pytest \ | ||||
!dev: --cov {envsitepackagesdir}/swh/deposit --cov-branch \ | !dev: --cov {envsitepackagesdir}/swh/deposit --cov-branch \ | ||||
{envsitepackagesdir}/swh/deposit \ | {envsitepackagesdir}/swh/deposit \ | ||||
{posargs} | {posargs} | ||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 \ | {envpython} -m flake8 \ | ||||
--exclude=.tox,.git,__pycache__,.tox,.eggs,*.egg,swh/deposit/migrations | --exclude=.tox,.git,__pycache__,.tox,.eggs,*.egg,swh/deposit/migrations | ||||
[testenv:mypy] | [testenv:mypy] | ||||
setenv = DJANGO_SETTINGS_MODULE = swh.deposit.settings.testing | setenv = DJANGO_SETTINGS_MODULE=swh.deposit.settings.testing | ||||
extras = | extras = | ||||
testing | testing | ||||
deps = | deps = | ||||
mypy < 0.750 | mypy | ||||
django-stubs | |||||
commands = | commands = | ||||
mypy swh | mypy swh |