
This updates the default jobs and various settings to reflect py3 support. Updates to the README also due to switching to use a requirements.txt file. Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com> Change-Id: I19ae0818e166e1b801797a6d50ec4aa8cb0c3300
27 lines
656 B
INI
27 lines
656 B
INI
[tox]
|
|
minversion = 3.18.0
|
|
skipsdist = True
|
|
envlist = pep8,py3
|
|
|
|
[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
|
|
-r{toxinidir}/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
|