forked from ikalchev/HAP-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (48 loc) · 1.26 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[tox]
envlist = py35, py36, docs, lint, pylint
skip_missing_interpreters = True
[testenv]
deps =
-r{toxinidir}/requirements_test.txt
commands =
pytest --timeout=2 --cov --cov-report= {posargs}
[testenv:temperature]
basepython = python3.6
deps =
-r{toxinidir}/requirements_all.txt
commands =
python main.py
[testenv:docs]
changedir = docs
deps =
-r{toxinidir}/requirements_docs.txt
commands =
make clean
sphinx-build -W -b html source {envtmpdir}/html
whitelist_externals=
/usr/bin/make
make
[testenv:lint]
basepython = {env:PYTHON3_PATH:python3}
deps =
-r{toxinidir}/requirements_test.txt
commands =
flake8 pyhap tests --ignore=D10,D205,D4,E501
[testenv:pylint]
basepython = {env:PYTHON3_PATH:python3}
ignore_errors = True
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
commands =
pylint pyhap tests --disable=missing-docstring,empty-docstring,invalid-name,fixme
[testenv:doc-errors]
basepython = {env:PYTHON3_PATH:python3}
ignore_errors = True
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
commands =
flake8 pyhap tests --select=D10,D205,D4,E501
pylint pyhap --disable=all --enable=missing-docstring,empty-docstring
# pydocstyle pyhap tests