This repository has been archived on 2024-05-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blinkpy/tox.ini
T
Kevin Fronczak 231d191556 Added rst checking
Added reStructuredText checking so that the README is actually readable when uploaded to PyPi
2017-05-13 20:14:32 -04:00

41 lines
958 B
INI

[tox]
envlist = build, py34, py35, py36, lint
skip_missing_interpreters = True
skipsdist = True
[testenv]
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}
commands =
py.test --timeout=30 --duration=10 --cov=blinkpy --cov-report term-missing {posargs}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
[testenv:lint]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
basepython = python3
ignore_errors = True
commands =
pylint --rcfile={toxinidir}/pylintrc blinkpy.py tests
flake8 blinkpy.py tests
pydocstyle blinkpy.py tests
rst-lint README.rst
rst-lint CHANGES.rst
[testenv:build]
recreate = True
skip_install = True
whitelist_externals =
/bin/sh
/bin/rm
deps =
-r{toxinidir}/requirements_test.txt
commands =
/bin/rm -rf build dist
python setup.py bdist_wheel
/bin/sh -c "pip install --upgrade dist/*.whl"
py.test tests