
Bring over the cleaning line from run_tests.sh for the pyc files to all the tox runs. This should eliminate the need to clean -x -i to kill pyc files in your local directory to get tests to pass. Change-Id: I0f59c977411d20751a26cac39504c51896b2eab8 Closes-Bug: #1368661
30 lines
634 B
INI
30 lines
634 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = py27,pep8
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
nosetests monasca_common/tests
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 monasca_common
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
max-complexity = 50
|
|
max-line-length = 120
|
|
builtins = _
|
|
ignore = F821,H201,H302,H305,H307,H405,H904
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*egg,build
|
|
show-source = True
|