diff --git a/requirements-test.txt b/requirements-test.txt index b5e4fdab..c6654a23 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,6 +1,6 @@ pytest pytest-django swh.scheduler[testing] pytest-postgresql >= 2.1.0 requests_mock -django-stubs +django-stubs < 1.3.0 diff --git a/tox.ini b/tox.ini index f2a6efc9..74556aad 100644 --- a/tox.ini +++ b/tox.ini @@ -1,36 +1,36 @@ [tox] envlist=flake8,mypy,py3 [testenv] extras = testing deps = # the dependency below is needed for now as a workaround for # https://github.com/pypa/pip/issues/6239 swh.core[http] >= 0.0.75 dev: ipdb pytest-cov pifpaf commands = pifpaf run postgresql -- \ pytest \ !dev: --cov {envsitepackagesdir}/swh/deposit --cov-branch \ {envsitepackagesdir}/swh/deposit \ {posargs} [testenv:flake8] skip_install = true deps = flake8 commands = {envpython} -m flake8 \ --exclude=.tox,.git,__pycache__,.tox,.eggs,*.egg,swh/deposit/migrations [testenv:mypy] setenv = DJANGO_SETTINGS_MODULE = swh.deposit.settings.testing extras = testing deps = - mypy + mypy < 0.750 commands = mypy swh