Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,py3 | envlist=flake8,mypy,py3 | ||||
[testenv:py3] | [testenv:py3] | ||||
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 | ||||
.[testing] | .[testing] | ||||
pytest-cov | pytest-cov | ||||
Show All 13 Lines | |||||
[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] | |||||
setenv = DJANGO_SETTINGS_MODULE = swh.deposit.settings.testing | |||||
skip_install = true | |||||
deps = | |||||
anlambert: Adding `setenv = DJANGO_SETTINGS_MODULE = swh.deposit.settings.testing` here will fix the mypy… | |||||
.[testing] | |||||
mypy | |||||
commands = | |||||
mypy swh |
Adding setenv = DJANGO_SETTINGS_MODULE = swh.deposit.settings.testing here will fix the mypy execution with tox