
Cleaned up test-requirements.txt in order to use the latest hacking package. Removed the ignored pep8 checks and made the code pass all of them. Also removed the OpenStack Foundation copyright notice that was put there accidentally before. Change-Id: I3d287eb71fc2bf0e4d52856c11cbc8a347cac2ed
32 lines
879 B
INI
32 lines
879 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = py27,pep8
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command =
|
|
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
nosetests --with-coverage --cover-package=monasca_common/. --cover-erase
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 monasca_common
|
|
|
|
[testenv:venv]
|
|
# TODO: remove once infra supports constraints for this target
|
|
install_command = pip install -U {opts} {packages}
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
max-complexity = 50
|
|
max-line-length = 120
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*egg,build
|
|
show-source = True
|