-
Notifications
You must be signed in to change notification settings - Fork 119
/
tox.ini
89 lines (76 loc) · 2.13 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[tox]
envlist = py35, py36, py37, py38, py39, py310, py311, py312, docs, lint, pylint, bandit
skip_missing_interpreters = True
[gh-actions]
python =
3.5: py36
3.6: py36
3.7: py37
3.8: py38, mypy
3.9: py39, mypy
3.10: py310, mypy
3.11: py311, mypy
3.12: py312, mypy
[testenv]
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
commands =
pytest --timeout=2 --cov --cov-report= {posargs}
[testenv:codecov]
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
commands =
pytest --timeout=2 --cov --cov-report=xml {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
allowlist_externals=
/usr/bin/make
make
[testenv:lint]
basepython = {env:PYTHON3_PATH:python3}
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
commands =
flake8 pyhap tests --ignore=D10,D205,D4,E501,E126,E128,W504,W503,E203
[testenv:pylint]
basepython = {env:PYTHON3_PATH:python3}
ignore_errors = True
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
commands =
pylint pyhap --disable=missing-docstring,empty-docstring,invalid-name,fixme,too-many-positional-arguments --max-line-length=120
pylint tests --disable=duplicate-code,missing-docstring,empty-docstring,invalid-name,fixme,too-many-positional-arguments --max-line-length=120
[testenv:bandit]
basepython = {env:PYTHON3_PATH:python3}
ignore_errors = True
deps =
-r{toxinidir}/requirements_all.txt
-r{toxinidir}/requirements_test.txt
bandit
commands =
bandit -r pyhap
[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