Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=black,flake8,mypy,py3 | envlist=black,flake8,mypy,py3,identify | ||||
[testenv] | [testenv] | ||||
extras = | extras = | ||||
testing | testing | ||||
deps = | deps = | ||||
pytest-cov | pytest-cov | ||||
commands = | commands = | ||||
pytest --cov={envsitepackagesdir}/swh/model \ | pytest --cov={envsitepackagesdir}/swh/model \ | ||||
--doctest-modules \ | --doctest-modules \ | ||||
{envsitepackagesdir}/swh/model \ | {envsitepackagesdir}/swh/model \ | ||||
--cov-branch {posargs} | --cov-branch {posargs} | ||||
[testenv:identify] | |||||
# no 'extras = testing', as it would install swh-core; | |||||
# and this test is designed to check 'swh-identify' does not depend on swh-core. | |||||
extras = | |||||
deps = | |||||
-r requirements-test.txt | |||||
commands = | |||||
pytest {envsitepackagesdir}/swh/model/tests/test_cli.py | |||||
[testenv:black] | [testenv:black] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
black==19.10b0 | black==19.10b0 | ||||
commands = | commands = | ||||
{envpython} -m black --check swh | {envpython} -m black --check swh | ||||
[testenv:flake8] | [testenv:flake8] | ||||
Show All 13 Lines |