hass-core/tox.ini
Michaël Arnauts c864ea60c9 Improve development workflow in docker (#5079)
* Allow bower install of frontend components as root. Needed for frontend development in docker since everything runs as root in the docker image.

* Improve development workflow in docker

* Use LANG=C.UTF-8 in tox. Fixes installation of libraries with UTF-8 in it's readme.

* Install mysqlclient psycopg2 uvloop after requirements_all.txt again, but with a --no-cache-dir this time. Allows bootstrap_frontend to be executed in a different path like the other scripts.
2017-01-02 22:04:09 +01:00

38 lines
969 B
INI

[tox]
envlist = py34, py35, lint, requirements, typing
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=C.UTF-8
PYTHONPATH = {toxinidir}:{toxinidir}/homeassistant
commands =
py.test --timeout=30 --duration=10 --cov --cov-report= {posargs}
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
[testenv:lint]
basepython = python3
ignore_errors = True
commands =
flake8
pylint homeassistant
pydocstyle homeassistant tests
[testenv:requirements]
basepython = python3
deps =
commands =
python script/gen_requirements_all.py validate
[testenv:typing]
basepython = python3
deps =
-r{toxinidir}/requirements_test.txt
commands =
mypy --silent-imports homeassistant