mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 10:37:15 +00:00
9a69f4dc2d
This is really kinda meh in terms of usefulness but getting these squared away (or ignored) allows us to run the rest of mypy on the drivers for the other benefits we might be able to actually see.
76 lines
1.5 KiB
INI
76 lines
1.5 KiB
INI
[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
|
|
deps = future
|
|
|
|
[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 = True
|
|
|
|
[testenv:makesupported]
|
|
allowlist_externals =
|
|
git
|
|
deps =
|
|
-rtest-requirements.txt
|
|
commands =
|
|
python chirp/share/make_supported.py model_support.html
|
|
python tools/py3_driver_progress.py -o tests/Python3_Driver_Testing.md tests/py3_driver_testers.txt tests/model_stats.tsv
|
|
git diff --exit-code tests/Python3_Driver_Testing.md
|