-
Notifications
You must be signed in to change notification settings - Fork 217
/
tox.ini
72 lines (63 loc) · 1.32 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
[tox]
envlist = style,unit,driver
[flake8]
builtins =
_,
ngettext,
[testenv]
sitepackages = True
passenv =
HOME
CHIRP_TESTS
CHIRP_TESTIMG
CHIRP_TEST_BITWISE_STRICT_BYTES
PIP_INDEX_URL
PIP_TRUSTED_HOST
allowlist_externals = bash
[testenv:style]
sitepackages = False
deps =
pep8
flake8
mypy
commands =
python ./tools/cpep8.py {posargs}
mypy --config-file .mypy.ini chirp --exclude='chirp/share/*'
[textenv:py3clean]
commands =
py3clean chirp tests
[testenv:unit]
setenv =
PYTHONPATH=../..
deps =
-rtest-requirements.txt
commands =
pytest --disable-warnings --html=unit_report.html -v tests/unit {posargs}
[testenv:driver]
setenv =
PYTHONPATH=../..
CHIRP_DEBUG=y
deps =
{[testenv:unit]deps}
pytest-xdist
commands =
pytest --disable-warnings --html=driver_report.html -v tests/test_drivers.py -n auto {posargs}
[testenv:fast-driver]
setenv =
PYTHONPATH=../..
CHIRP_DEBUG=y
deps =
{[testenv:unit]deps}
pytest-xdist
commands =
python tools/fast-driver.py --disable-warnings --html=driver_report.html -v tests/test_drivers.py -n auto {posargs}
[pytest]
xfail_strict = true
render_collapsed = all
[testenv:makesupported]
allowlist_externals =
git
deps =
-rtest-requirements.txt
commands =
python chirp/share/make_supported.py model_support.html