2015-03-15 18:14:30 +01:00
|
|
|
[tox]
|
2019-05-14 21:09:07 +02:00
|
|
|
envlist = py35,py36,py37
|
2019-05-14 21:19:56 +02:00
|
|
|
skip_missing_interpreters = True
|
2018-10-01 02:30:04 +02:00
|
|
|
skipsdist = True
|
2019-05-13 23:12:18 +02:00
|
|
|
minversion = 3.10.0
|
2015-03-15 18:14:30 +01:00
|
|
|
|
|
|
|
[testenv]
|
2018-10-01 02:30:04 +02:00
|
|
|
usedevelop = True
|
|
|
|
deps = -rtest_requirements.txt
|
2019-05-19 12:46:32 +02:00
|
|
|
whitelist_externals =
|
|
|
|
find
|
|
|
|
sh
|
2019-05-13 23:10:15 +02:00
|
|
|
install_command =
|
2019-05-14 19:28:04 +02:00
|
|
|
sh scripts/pip {opts} {packages}
|
2019-05-19 12:46:32 +02:00
|
|
|
commands_pre =
|
|
|
|
find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -name '*.py[c|o]' -delete
|
2018-09-30 07:45:00 +02:00
|
|
|
commands =
|
2019-05-13 13:52:30 +02:00
|
|
|
pytest
|
2019-05-14 21:09:07 +02:00
|
|
|
py36,py37: black --check .
|
|
|
|
isort --recursive --check-only --settings-path setup.cfg .
|
2018-09-30 08:15:18 +02:00
|
|
|
flake8 .
|
2018-09-30 07:45:00 +02:00
|
|
|
|
|
|
|
[testenv:black]
|
2018-10-01 02:30:04 +02:00
|
|
|
basepython = python3.7
|
2018-09-30 07:45:00 +02:00
|
|
|
commands =
|
2019-05-13 13:52:30 +02:00
|
|
|
black .
|
2018-09-30 08:15:18 +02:00
|
|
|
|
2018-10-01 02:30:04 +02:00
|
|
|
[testenv:end-to-end]
|
2018-10-04 07:36:25 +02:00
|
|
|
deps = -rtest_requirements.txt
|
2018-10-01 02:30:04 +02:00
|
|
|
commands =
|
2019-05-13 13:52:30 +02:00
|
|
|
pytest tests/end-to-end
|
2019-05-13 23:38:43 +02:00
|
|
|
|
|
|
|
[testenv:isort]
|
|
|
|
deps = {[testenv]deps}
|
|
|
|
commands =
|
|
|
|
isort {posargs:--recursive} --settings-path setup.cfg .
|