Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=black,flake8,mypy,py3 | envlist=black,flake8,mypy,py3,c | ||||
[testenv] | [testenv] | ||||
extras = | extras = | ||||
testing | testing | ||||
deps = | deps = | ||||
pytest-cov | pytest-cov | ||||
commands = | commands = | ||||
pytest --doctest-modules \ | pytest --doctest-modules \ | ||||
{envsitepackagesdir}/swh/perfecthash \ | {envsitepackagesdir}/swh/perfecthash \ | ||||
--cov={envsitepackagesdir}/swh/perfecthash \ | --cov={envsitepackagesdir}/swh/perfecthash \ | ||||
--cov-branch {posargs} | --cov-branch {posargs} | ||||
[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:c] | |||||
whitelist_externals = make | |||||
usedevelop = true | |||||
commands = | |||||
make -C swh/perfecthash check | |||||
[testenv:flake8] | [testenv:flake8] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 | ||||
[testenv:mypy] | [testenv:mypy] | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |