95e17ddf05
Newer versions of flake8 identify these valid violations. N802 added as skip because the entire library uses camelcase. Change-Id: Ia687b05bb8d0590eb30a970a710a2639548dbc60
33 lines
801 B
INI
33 lines
801 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
skip_missing_interpreters = false
|
|
# https://docs.python.org/devguide/#status-of-python-branches
|
|
envlist = pep8, py{38,37,36,35,27,py}
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
# These are ignored intentionally in infra projects;
|
|
# please don't submit patches that solely correct them or enable them.
|
|
ignore =
|
|
E124,E125,E129,E252,E402,E741,H,W503,W504
|
|
N802 # N802 function name {} should be lowercase
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|