forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (34 loc) · 973 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[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=en_US.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