Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=black,flake8,mypy,py3 | envlist=black,flake8,mypy,py3 | ||||
[testenv:py3] | [testenv:py3] | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
pytest-cov | pytest-cov | ||||
commands = | commands = | ||||
pytest --doctest-modules \ | pytest --doctest-modules \ | ||||
{envsitepackagesdir}/swh/icinga_plugins \ | {envsitepackagesdir}/swh/icinga_plugins \ | ||||
--cov={envsitepackagesdir}/swh/icinga_plugins \ | --cov={envsitepackagesdir}/swh/icinga_plugins \ | ||||
--cov-branch {posargs} | --cov-branch {posargs} | ||||
[testenv:black] | [testenv:black] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
black==22.3.0 | black==22.10.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==5.0.4 | ||||
flake8-bugbear==22.3.23 | flake8-bugbear==22.9.23 | ||||
pycodestyle==2.9.1 | |||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 | ||||
[testenv:mypy] | [testenv:mypy] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
.[testing] | .[testing] | ||||
mypy==0.942 | mypy==0.942 | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |