2015-03-15 10:14:30 -07:00
|
|
|
[tox]
|
2018-09-30 17:30:04 -07:00
|
|
|
envlist = py3
|
|
|
|
skipsdist = True
|
2019-05-13 23:12:18 +02:00
|
|
|
minversion = 3.10.0
|
2015-03-15 10:14:30 -07:00
|
|
|
|
|
|
|
[testenv]
|
2018-09-30 17:30:04 -07:00
|
|
|
usedevelop = True
|
|
|
|
deps = -rtest_requirements.txt
|
2018-10-15 09:25:57 -07:00
|
|
|
whitelist_externals = sh
|
2019-05-13 23:10:15 +02:00
|
|
|
install_command =
|
|
|
|
# temporary work around for https://github.com/pypa/pip/issues/6434
|
|
|
|
python -m pip install --no-use-pep517 {opts} {packages}
|
2018-09-29 22:45:00 -07:00
|
|
|
commands =
|
2019-05-13 13:52:30 +02:00
|
|
|
pytest
|
2018-10-15 09:25:57 -07:00
|
|
|
sh scripts/black
|
2018-09-29 23:15:18 -07:00
|
|
|
flake8 .
|
2018-09-29 22:45:00 -07:00
|
|
|
|
|
|
|
[testenv:black]
|
2018-09-30 17:30:04 -07:00
|
|
|
basepython = python3.7
|
2018-09-29 22:45:00 -07:00
|
|
|
commands =
|
2019-05-13 13:52:30 +02:00
|
|
|
black .
|
2018-09-29 23:15:18 -07:00
|
|
|
|
2018-09-30 17:30:04 -07:00
|
|
|
[testenv:end-to-end]
|
2018-10-03 22:36:25 -07:00
|
|
|
deps = -rtest_requirements.txt
|
2018-09-30 17:30:04 -07:00
|
|
|
commands =
|
2019-05-13 13:52:30 +02:00
|
|
|
pytest tests/end-to-end
|