
This fixes the tox configuration for the flake8 target. It excludes all existing flake8 issues, so the flake8 target succeeds. In the following commits, I will fix these flake issues individually, and remove the corresponding exclude from the list, so that every commit passes the flake8 test. It also adds the generated .tox folder to .gitignore. Change-Id: I1f583d9e344b5af644f99ba2a94a09ecaff61176
35 lines
745 B
INI
35 lines
745 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = pep8, py27
|
|
|
|
[testenv]
|
|
# Set STATSD env variables so that statsd code paths are tested.
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
deps = flake8
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
python setup.py testr --coverage
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E122,E123,E126,E127,E128,E129,E221,E225,E226,E231,E251,E261,E262,E265,E301,E302,E303,E711,E712,E721,F401,F403,F821,F841,W391
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|
|
max-line-length = 172
|