Changeset View
Changeset View
Standalone View
Standalone View
tox.ini
[tox] | [tox] | ||||
envlist=flake8,mypy,py3-{core,db,server} | envlist=flake8,mypy,py3-{core,db,server} | ||||
[testenv] | [testenv] | ||||
deps = | deps = | ||||
-rrequirements-test.txt | .[testing-core] | ||||
core: -rrequirements-logging.txt | core: .[logging] | ||||
db: .[db] | db: .[db,testing-db] | ||||
db: pifpaf | db: pifpaf | ||||
server: .[http] | server: .[http] | ||||
cover: pytest-cov | cover: pytest-cov | ||||
commands = | commands = | ||||
db: pifpaf run postgresql -- \ | db: pifpaf run postgresql -- \ | ||||
pytest --doctest-modules \ | pytest --doctest-modules \ | ||||
slow: --hypothesis-profile=slow \ | slow: --hypothesis-profile=slow \ | ||||
cover: --cov={envsitepackagesdir}/swh/core --cov-branch \ | cover: --cov={envsitepackagesdir}/swh/core --cov-branch \ | ||||
Show All 12 Lines | |||||
deps = | deps = | ||||
flake8 | flake8 | ||||
commands = | commands = | ||||
{envpython} -m flake8 | {envpython} -m flake8 | ||||
[testenv:mypy] | [testenv:mypy] | ||||
skip_install = true | skip_install = true | ||||
deps = | deps = | ||||
.[testing] | .[logging,db,http,testing-core,testing-db] | ||||
mypy | mypy | ||||
commands = | commands = | ||||
mypy swh | mypy swh |