mirror of
https://github.com/home-assistant/core
synced 2024-09-06 10:29:55 +02:00
![Paulus Schoutsen](/assets/img/avatar_default.png)
* tox cleanup * 1 tox step * Revert pytest sugar changes * Tox: make pylint its own task * Bump Travis to 30 minutes timeout
45 lines
1.2 KiB
INI
45 lines
1.2 KiB
INI
[tox]
|
|
envlist = py34, py35, py36, lint, requirements, typing
|
|
skip_missing_interpreters = True
|
|
|
|
[testenv]
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}:{toxinidir}/homeassistant
|
|
; 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.
|
|
whitelist_externals = /usr/bin/env
|
|
install_command = /usr/bin/env LANG=C.UTF-8 pip install {opts} {packages}
|
|
commands =
|
|
py.test --timeout=15 --duration=10 --cov --cov-report= {posargs}
|
|
deps =
|
|
-r{toxinidir}/requirements_test_all.txt
|
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
|
|
|
[testenv:pylint]
|
|
basepython = python3
|
|
ignore_errors = True
|
|
deps =
|
|
-r{toxinidir}/requirements_all.txt
|
|
-r{toxinidir}/requirements_test.txt
|
|
-c{toxinidir}/homeassistant/package_constraints.txt
|
|
commands =
|
|
pylint homeassistant
|
|
|
|
[testenv:lint]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/requirements_test.txt
|
|
commands =
|
|
python script/gen_requirements_all.py validate
|
|
flake8
|
|
pydocstyle homeassistant tests
|
|
|
|
[testenv:typing]
|
|
basepython = python3
|
|
deps =
|
|
-r{toxinidir}/requirements_test.txt
|
|
commands =
|
|
mypy --silent-imports homeassistant
|