2019-10-10 12:22:34 +02:00
|
|
|
[tox]
|
2019-11-21 19:09:05 +01:00
|
|
|
envlist = py37, py38, black, check-manifest, flake8
|
2019-10-10 12:22:34 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
sitepackages = true
|
2019-11-21 19:09:05 +01:00
|
|
|
deps = .[test]
|
2019-10-10 12:22:34 +02:00
|
|
|
commands =
|
2019-11-21 19:09:05 +01:00
|
|
|
python -m pytest \
|
2019-10-10 12:22:34 +02:00
|
|
|
--basetemp={envtmpdir} \
|
|
|
|
--cov=mopidy_raspberry_gpio --cov-report=term-missing \
|
|
|
|
{posargs}
|
|
|
|
|
2019-11-21 19:09:05 +01:00
|
|
|
[testenv:black]
|
|
|
|
deps = .[lint]
|
2020-07-14 15:51:05 +02:00
|
|
|
commands = python -m black --diff --check .
|
2019-10-10 12:22:34 +02:00
|
|
|
|
2019-11-21 19:09:05 +01:00
|
|
|
[testenv:check-manifest]
|
|
|
|
deps = .[lint]
|
|
|
|
commands = python -m check_manifest
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
deps = .[lint]
|
2020-01-23 14:44:58 +01:00
|
|
|
commands = python -m flake8 --ignore=B950,B305,E501 --show-source --statistics
|