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
|
# Copyright (c) 2017-2024 Richard Hull and contributors
# See LICENSE.rst for details.
[tox]
envlist = py{38,39,310,311,312,313,314},qa,doc
skip_missing_interpreters = True
[testenv]
usedevelop = true
allowlist_externals =
py.test
coverage
setenv =
PYTHONDEVMODE=1
commands =
coverage erase
py.test --cov=luma {posargs}
coverage html
deps =
.[gpio]
.[spi]
.[ftdi]
.[test]
[testenv:watch] # use ptw (=pytestwatch) to run tests when files change
commands =
ptw -v {posargs}
[testenv:qa]
commands =
flake8
rstcheck README.rst CHANGES.rst CONTRIBUTING.rst
deps = .[qa]
[testenv:doc]
commands =
make linkcheck
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
changedir = doc
allowlist_externals = make
deps = .[docs]
|