![lvdongbing](/assets/img/avatar_default.png)
Ignore E731 and fix some pep8 errors. Change-Id: Id7dfa9f1fc63b5e196261e4311d2f0c61a5ab9c1
43 lines
807 B
INI
43 lines
807 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = py34,py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
install_command = pip install {opts} {packages}
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
ostestr --slowest {posargs}
|
|
|
|
whitelist_externals = bash
|
|
find
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs}
|
|
|
|
[testenv:genconfig]
|
|
envdir = {toxworkdir}/venv
|
|
commands =
|
|
{toxinidir}/tools/gen-config
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
ignore = E731
|
|
exclude = .venv,.git,.tox,cover,dist,*lib/python*,*egg,tools,build
|
|
max-complexity=20
|
|
|
|
[hacking]
|
|
import_exceptions = bilean.common.i18n
|