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
|
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py35,py36,py37,pylint,lint
skip_missing_interpreters = True
[testenv:pylint]
basepython = python3
deps =
-r{toxinidir}/test-requirements.txt
commands=pylint aioharmony
[testenv:lint]
basepython = python3
deps =
-r{toxinidir}/test-requirements.txt
commands =
flake8 aioharmony tests
pydocstyle aioharmony tests
[testenv]
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/test-requirements.txt
commands=py.test tests --timeout=30 --duration=10 --cov=aioharmony--cov-report html {posargs}
|