Files
deb-murano/tox.ini
Ekaterina Chernova 8a15466301 Enable and resolve some PEP8 issues
* E128 continuation line under-indented for visual indent
* H501 don't use locals() for formatting strings. to also check
* H402 first line of docstring should end with punctuation
* E122 continuation line missing indentation or outdented
* E713 test for membership should be 'not in'

Change-Id: I4a30350778a4452075e468400effcbc4155d24d8
2015-02-05 12:10:18 +03:00

57 lines
1.4 KiB
INI

[tox]
envlist = py27,pep8
minversion = 1.6
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
DISCOVER_DIRECTORY=murano/tests/unit
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = bash tools/pretty_tox.sh '{posargs}'
whitelist_externals = bash
[testenv:pep8]
commands =
flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
commands =
rm -rf doc/html doc/build
rm -rf doc/source/apidoc doc/source/api
python setup.py build_sphinx
[testenv:pyflakes]
deps = flake8
commands = flake8
[testenv:genconfig]
commands = oslo-config-generator --config-file etc/oslo-config-generator/murano.conf
[flake8]
# H233 Python 3.x incompatible use of print operator
# E265 block comment should start with '# '
# H305 imports not grouped correctly
# H307 like imports should be grouped together
# H405 Multi line docstring summary not separated with an empty line
# H702 Argument to _ must be just a string
# H904 Wrap long lines in parentheses instead of a backslash
ignore = H233,H305,H307,E265,H405,H702,H904
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
[hacking]
import_exceptions = murano.openstack.common.gettextutils,
oslo.db.sqlalchemy.test_base