2012-05-08 21:39:08 +00:00
|
|
|
[tox]
|
2013-09-09 23:02:49 +00:00
|
|
|
envlist = py26,py27,pep8,contrib
|
2012-05-08 21:39:08 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2013-05-16 04:48:36 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2013-04-25 03:07:37 +00:00
|
|
|
commands =
|
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
2012-05-08 21:39:08 +00:00
|
|
|
|
2013-09-09 23:02:49 +00:00
|
|
|
[testenv:contrib]
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands =
|
|
|
|
discover -s contrib/ {posargs}
|
2013-10-03 21:06:45 +00:00
|
|
|
flake8 contrib
|
2013-09-09 23:02:49 +00:00
|
|
|
|
2012-05-08 21:39:08 +00:00
|
|
|
[testenv:pep8]
|
2013-07-10 14:01:00 +00:00
|
|
|
commands =
|
2013-10-03 21:06:45 +00:00
|
|
|
flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib
|
2013-10-10 05:21:26 +00:00
|
|
|
{toxinidir}/tools/config/check_uptodate.sh
|
2012-05-08 21:39:08 +00:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2012-05-17 20:02:04 +00:00
|
|
|
[testenv:cover]
|
2013-04-25 03:07:37 +00:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage
|
2013-05-11 18:26:42 +00:00
|
|
|
|
2013-08-23 02:09:58 +00:00
|
|
|
[testenv:docs]
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
sphinxcontrib-httpdomain
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2013-05-11 18:26:42 +00:00
|
|
|
[flake8]
|
2013-06-11 03:05:51 +00:00
|
|
|
# F841 local variable 'json_template' is assigned to but never used
|
|
|
|
# H201 no 'except:' at least use 'except Exception:'
|
|
|
|
# H302 import only modules.'bla..' does not import a module
|
|
|
|
# H306 imports not in alphabetical order
|
|
|
|
# H404 multi line docstring should start with a summary
|
2013-10-15 01:11:56 +00:00
|
|
|
ignore = F841,H201,H302,H306,H404,H803
|
2013-05-11 18:26:42 +00:00
|
|
|
show-source = true
|
|
|
|
builtins = _
|
2013-08-22 01:42:31 +00:00
|
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,tools,build
|