ea6d14f99c
Enable H101 check, H803 was removed from hacking, Fix H238 errors and enable the check. Change-Id: Ifa69d18bb1ee54f7b42c6a281d76dc720e2043ba
52 lines
1.2 KiB
INI
52 lines
1.2 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = pep8,py27,py27dj14,py27dj15,py27dj16
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = /bin/bash run_tests.sh -N --no-pep8 {posargs}
|
|
|
|
[testenv:py27]
|
|
setenv = DJANGO_SETTINGS_MODULE=mistraldashboard.test.settings
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:py27dj14]
|
|
basepython = python2.7
|
|
commands = pip install django>=1.4,<1.5
|
|
/bin/bash run_tests.sh -N --no-pep8 {posargs}
|
|
|
|
[testenv:py27dj15]
|
|
basepython = python2.7
|
|
commands = pip install django>=1.5,<1.6
|
|
/bin/bash run_tests.sh -N --no-pep8 {posargs}
|
|
|
|
[testenv:py27dj16]
|
|
basepython = python2.7
|
|
commands = pip install django>=1.6,<1.7
|
|
/bin/bash run_tests.sh -N --no-pep8 {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,.ropeproject,tools
|