![Andreas Jaeger](/assets/img/avatar_default.png)
Rename pep8 tox environment to linters to make it clear that other lint like environments can be added here. Change-Id: I85c7c9bf0c4328243b5fd1dbe6163d6a784e5353 Depends-On: I4219fdf75d7c82d957c7a01df13e6a96aaa653fd
30 lines
718 B
INI
30 lines
718 B
INI
[tox]
|
|
envlist = py26,py27,linters
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
NOSE_WITH_OPENSTACK=1
|
|
NOSE_OPENSTACK_COLOR=1
|
|
NOSE_OPENSTACK_RED=0.05
|
|
NOSE_OPENSTACK_YELLOW=0.025
|
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
|
NOSE_OPENSTACK_STDOUT=1
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
/usr/bin/find . -type f -name "*.pyc" -delete
|
|
nosetests -v {posargs}
|
|
whitelist_externals = *
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:linters]
|
|
commands = flake8
|
|
distribute = false
|
|
|
|
[flake8]
|
|
ignore = H703,H102,E265,E262,H233
|
|
show-source = true
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build,setup.py,tests/ci/*,scripts/*
|