Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=black,flake8,mypy,py3 | envlist=black,flake8,mypy,py3 | ||||
[testenv] | [testenv] | ||||
extras = | extras = | ||||
testing | testing | ||||
deps = | deps = | ||||
pytest-cov | pytest-cov | ||||
swh.storage[testing] | |||||
commands = | commands = | ||||
pytest --doctest-modules \ | pytest --doctest-modules \ | ||||
{envsitepackagesdir}/swh/foo \ | {envsitepackagesdir}/swh/loader/metadata \ | ||||
--cov={envsitepackagesdir}/swh/foo \ | --cov={envsitepackagesdir}/swh/loader/metadata \ | ||||
--cov-branch {posargs} | --cov-branch {posargs} | ||||
[testenv:black] | [testenv:black] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
black==22.3.0 | black==22.3.0 | ||||
commands = | commands = | ||||
{envpython} -m black --check swh | {envpython} -m black --check swh | ||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8==4.0.1 | flake8==4.0.1 | ||||
flake8-bugbear==22.3.23 | flake8-bugbear==22.3.23 | ||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 | ||||
[testenv:mypy] | [testenv:mypy] | ||||
extras = | extras = | ||||
testing | testing | ||||
deps = | deps = | ||||
mypy==0.920 | mypy==0.942 | ||||
commands = | commands = | ||||
mypy swh | mypy swh | ||||
# build documentation outside swh-environment using the current | # build documentation outside swh-environment using the current | ||||
# git HEAD of swh-docs, is executed on CI for each diff to prevent | # git HEAD of swh-docs, is executed on CI for each diff to prevent | ||||
# breaking doc build | # breaking doc build | ||||
[testenv:sphinx] | [testenv:sphinx] | ||||
whitelist_externals = make | whitelist_externals = make | ||||
Show All 32 Lines |