gluon/tox.ini
Darla Ahlert ce549c8ce7 Remove two pep8 ignores and fix corresponding bugs
Tin originally ignored F401 and F841 in pep8 tests [1]. This
patch removes those ignores and fixes the bugs that come from
running the updated tests.

[1] https://github.com/openstack/gluon/blob/master/tox.ini#L42-L43

Change-Id: Ibe96a1eb8f0d3d412c11370fb348d1c1a99404cc
2016-12-19 08:02:48 -06:00

45 lines
1.3 KiB
INI

[tox]
minversion = 2.0
envlist = py27,pep8,py34
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:releasenotes]
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
show-source = True
builtins = _
# D100: Missing docstring in public module
# D101: Missing docstring in public class
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D104: Missing docstring in public package
# D203: 1 blank line required before class docstring (deprecated in pep257)
# F401: Module imported but unused
ignore = D100,D101,D102,D103,D104,D203,F401
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build