
Changes to tox and the pep8 package require updates to the tox environment definition. Change-Id: Id95ae5fe17f71e15903e646f3065db85282359ba Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
26 lines
618 B
INI
26 lines
618 B
INI
[tox]
|
|
minversion = 3.18.0
|
|
skipsdist = True
|
|
envlist = pep8,py27
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command=python -m pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
|
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 {posargs} .
|
|
|
|
[flake8]
|
|
# The following checks are ignored on purpose.
|
|
#
|
|
# E125 unexpected spaces around keyword/parameter equals
|
|
# reason: no improvement in readability
|
|
ignore = E251
|
|
exclude = .git,.venv,.tox,dist,tools,doc/ext,*egg,build
|
|
max-complexity = 30
|
|
import-order-style = pep8
|