syntribos/tox.ini

40 lines
1022 B
INI

[tox]
envlist=pep8,py27,py35
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv=VIRTUAL_ENV={envdir}
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
coverage erase
python setup.py testr --coverage --slowest --testr-args='{posargs}'
coverage report -m
[testenv:docs]
commands =
rm -rf doc/html doc/build
rm -rf doc/source/apidoc doc/source/api
python setup.py build_sphinx
whitelist_externals =
rm
[testenv:pep8]
commands=flake8 {posargs} syntribos
flake8 {posargs} tests
{[testenv:pylint]commands}
[testenv:venv]
commands = {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,H303,F403,H104,H302
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:pylint]
commands=pylint --rcfile=pylintrc syntribos