3 envlist = py27,py33,py34,pep8
7 setenv = VIRTUAL_ENV={envdir}
9 install_command = pip install -U {opts} {packages}
10 deps = -r{toxinidir}/requirements.txt
11 -r{toxinidir}/test-requirements.txt
12 commands = lockutils-wrapper python setup.py testr --slowest --testr-args='{posargs}'
13 whitelist_externals = bash
16 downloadcache = ~/cache/pip
21 # Check that .po and .pot files are valid:
22 bash -c "find escalator -type f -regex '.*\.pot?' -print0|xargs -0 -n 1 msgfmt --check-format -o /dev/null"
25 setenv = VIRTUAL_ENV={envdir}
26 commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
33 oslo-config-generator --config-file etc/oslo-config-generator/escalator-api.conf
36 commands = python setup.py build_sphinx
39 # TODO(dmllr): Analyze or fix the warnings blacklisted below
40 # E711 comparison to None should be 'if cond is not None:'
41 # E712 comparison to True should be 'if cond is True:' or 'if cond:'
42 # H302 import only modules
43 # H402 one line docstring needs punctuation.
44 # H404 multi line docstring should start with a summary
45 # H405 multi line docstring summary not separated with an empty line
46 # H904 Wrap long lines in parentheses instead of a backslash
47 ignore = E711,E712,H302,H402,H404,H405,H904,F841,F821,E265,F812,F402,E226,E731
48 exclude = .venv,.git,.tox,dist,doc,etc,*escalator/locale*,*openstack/common*,*lib/python*,*egg,build,escalator/i18n.py
51 local-check-factory = escalator.hacking.checks.factory