2012-05-08 17:39:08 -04:00
|
|
|
[tox]
|
2013-07-19 23:02:11 +02:00
|
|
|
envlist = py26,py27,py33,pep8
|
2012-05-08 17:39:08 -04:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2013-05-15 21:48:36 -07:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2013-04-24 20:07:37 -07:00
|
|
|
commands =
|
2013-05-02 10:28:20 +01:00
|
|
|
python tools/patch_tox_venv.py
|
2013-04-24 20:07:37 -07:00
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
2012-05-08 17:39:08 -04:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-07-10 16:01:00 +02:00
|
|
|
commands =
|
|
|
|
flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-cfn bin/heat-engine bin/heat-manage bin/heat-watch
|
|
|
|
{toxinidir}/tools/conf/check_uptodate.sh
|
2012-05-08 17:39:08 -04:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2012-05-17 16:02:04 -04:00
|
|
|
[testenv:cover]
|
2013-04-24 20:07:37 -07:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
2013-05-02 10:28:20 +01:00
|
|
|
python tools/patch_tox_venv.py
|
2013-04-24 20:07:37 -07:00
|
|
|
python setup.py testr --coverage
|
2013-05-11 14:26:42 -04:00
|
|
|
|
|
|
|
[flake8]
|
2013-06-11 13:05:51 +10: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-06-20 11:52:53 +10:00
|
|
|
ignore = F841,H201,H302,H306,H404
|
2013-05-11 14:26:42 -04:00
|
|
|
show-source = true
|
|
|
|
builtins = _
|
2013-05-20 11:56:06 +12:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,build
|