2016-02-14 00:56:32 +00:00
|
|
|
[tox]
|
2016-07-21 05:38:52 +00:00
|
|
|
envlist = py34, py35, lint, requirements, typing
|
2016-02-14 00:56:32 +00:00
|
|
|
skip_missing_interpreters = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
; both temper-python and XBee modules have utf8 in their README files
|
|
|
|
; which get read in from setup.py. If we don't force our locale to a
|
|
|
|
; utf8 one, tox's env is reset. And the install of these 2 packages
|
|
|
|
; fail.
|
|
|
|
LANG=en_US.UTF-8
|
|
|
|
PYTHONPATH = {toxinidir}:{toxinidir}/homeassistant
|
|
|
|
commands =
|
|
|
|
py.test -v --timeout=30 --cov --cov-report= {posargs}
|
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements_all.txt
|
|
|
|
-r{toxinidir}/requirements_test.txt
|
|
|
|
|
|
|
|
[testenv:lint]
|
|
|
|
basepython = python3
|
2016-02-15 10:00:46 +00:00
|
|
|
ignore_errors = True
|
2016-02-14 00:56:32 +00:00
|
|
|
commands =
|
|
|
|
flake8
|
|
|
|
pylint homeassistant
|
2016-03-10 07:34:28 +00:00
|
|
|
pydocstyle homeassistant tests
|
2016-02-14 00:56:32 +00:00
|
|
|
|
|
|
|
[testenv:requirements]
|
|
|
|
basepython = python3
|
|
|
|
deps =
|
|
|
|
commands =
|
2016-02-15 10:00:46 +00:00
|
|
|
python script/gen_requirements_all.py validate
|
2016-07-21 05:38:52 +00:00
|
|
|
|
|
|
|
[testenv:typing]
|
|
|
|
basepython = python3
|
2016-07-22 06:54:25 +00:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/requirements_test.txt
|
2016-07-21 05:38:52 +00:00
|
|
|
commands =
|
|
|
|
mypy --silent-imports homeassistant
|