Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
69 lines (62 loc) · 1.4 KB
/
Copy pathtox.ini
File metadata and controls
69 lines (62 loc) · 1.4 KB
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
[tox]
envlist = py311, py312, py313, py314, py315, docs, lint, ty
skip_missing_interpreters = True
[gh-actions]
python =
3.11: py311
3.12: py312
3.13: py313
3.14: py314
3.15: py315
[testenv]
# tox installs the package itself (plus the extras below), so its
# [project.dependencies] are the single source of truth for runtime deps.
extras =
QRCode
WebRTC
deps =
-r{toxinidir}/requirements_test.txt
commands =
pytest --timeout=2 --cov --cov-report= {posargs}
[testenv:codecov]
extras =
QRCode
WebRTC
deps =
-r{toxinidir}/requirements_test.txt
commands =
pytest --timeout=2 --cov --cov-report=xml {posargs}
[testenv:temperature]
basepython = python3.12
extras =
QRCode
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]
# Ruff does not import the package, so the env does not need it installed.
package = skip
deps =
ruff
commands =
ruff check pyhap tests benchmarks scripts/gen_hap_types.py
ruff format --check pyhap tests benchmarks scripts/gen_hap_types.py
[testenv:ty]
extras =
QRCode
WebRTC
# benchmarks/ is in [tool.ty.src], so the type checker needs its deps too.
bench
deps =
-r{toxinidir}/requirements_test.txt
commands =
ty check