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 = | ||||
.[testing] | .[testing] | ||||
pytest-cov | pytest-cov | ||||
commands = | commands = | ||||
pytest --cov={envsitepackagesdir}/swh/loader/mercurial \ | pytest --cov={envsitepackagesdir}/swh/loader/mercurial \ | ||||
{envsitepackagesdir}/swh/loader/mercurial \ | {envsitepackagesdir}/swh/loader/mercurial \ | ||||
--cov-branch {posargs} | --cov-branch {posargs} | ||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 | ||||
[testenv:mypy] | |||||
skip_install = true | |||||
deps = | |||||
.[testing] | |||||
mypy | |||||
commands = | |||||
mypy swh |