2015-03-15 17:14:30 +00:00
|
|
|
[tox]
|
2019-05-14 19:09:07 +00:00
|
|
|
envlist = py35,py36,py37
|
|
|
|
skip_missing_interpreters=true
|
2018-10-01 00:30:04 +00:00
|
|
|
skipsdist = True
|
2019-05-13 21:12:18 +00:00
|
|
|
minversion = 3.10.0
|
2015-03-15 17:14:30 +00:00
|
|
|
|
|
|
|
[testenv]
|
2018-10-01 00:30:04 +00:00
|
|
|
usedevelop = True
|
|
|
|
deps = -rtest_requirements.txt
|
2018-10-15 16:25:57 +00:00
|
|
|
whitelist_externals = sh
|
2019-05-13 21:10:15 +00: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-30 05:45:00 +00:00
|
|
|
commands =
|
2019-05-13 11:52:30 +00:00
|
|
|
pytest
|
2019-05-14 19:09:07 +00:00
|
|
|
py36,py37: black --check .
|
|
|
|
isort --recursive --check-only --settings-path setup.cfg .
|
2018-09-30 06:15:18 +00:00
|
|
|
flake8 .
|
2018-09-30 05:45:00 +00:00
|
|
|
|
|
|
|
[testenv:black]
|
2018-10-01 00:30:04 +00:00
|
|
|
basepython = python3.7
|
2018-09-30 05:45:00 +00:00
|
|
|
commands =
|
2019-05-13 11:52:30 +00:00
|
|
|
black .
|
2018-09-30 06:15:18 +00:00
|
|
|
|
2018-10-01 00:30:04 +00:00
|
|
|
[testenv:end-to-end]
|
2018-10-04 05:36:25 +00:00
|
|
|
deps = -rtest_requirements.txt
|
2018-10-01 00:30:04 +00:00
|
|
|
commands =
|
2019-05-13 11:52:30 +00:00
|
|
|
pytest tests/end-to-end
|
2019-05-13 21:38:43 +00:00
|
|
|
|
|
|
|
[testenv:isort]
|
|
|
|
deps = {[testenv]deps}
|
|
|
|
commands =
|
|
|
|
isort {posargs:--recursive} --settings-path setup.cfg .
|