add escalator frame
[escalator.git] / api / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist = py27,py33,py34,pep8
4 skipsdist = True
5
6 [testenv]
7 setenv = VIRTUAL_ENV={envdir}
8 usedevelop = True
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
14
15 [tox:jenkins]
16 downloadcache = ~/cache/pip
17
18 [testenv:pep8]
19 commands =
20   flake8 {posargs}
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"
23
24 [testenv:cover]
25 setenv = VIRTUAL_ENV={envdir}
26 commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
27
28 [testenv:venv]
29 commands = {posargs}
30
31 [testenv:genconfig]
32 commands =
33   oslo-config-generator --config-file etc/oslo-config-generator/escalator-api.conf
34
35 [testenv:docs]
36 commands = python setup.py build_sphinx
37
38 [flake8]
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
49
50 [hacking]
51 local-check-factory = escalator.hacking.checks.factory