Add Python 3.8 env in Travis CI test matrix. At present the pinning of flake8 disallows running of lint on Python 3.8 systems. Update flake8 ignore-list to ignore W504 instead of W503, the PEP guidance is that either is ok, but there must be local consistency. There are more occurences of binary operator before line-break than after in this repository, and we have also chosen to ignore W504 in most of our other repositories.
38 lines
813 B
INI
38 lines
813 B
INI
[tox]
|
|
envlist = pep8, py3
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
PYTHONHASHSEED=0
|
|
install_command =
|
|
pip install {opts} {packages}
|
|
|
|
commands = nosetests --with-coverage --cover-package=zaza {posargs} {toxinidir}/unit_tests
|
|
|
|
[testenv:py3]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/requirements.txt
|
|
commands = flake8 {posargs} zaza unit_tests
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
deps = -r{toxinidir}/requirements.txt
|
|
commands = /bin/true
|
|
|
|
[flake8]
|
|
ignore = E402,E226,W504
|
|
per-file-ignores =
|
|
unit_tests/**: D
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
changedir = doc/source
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
commands = sphinx-build -W -b html -d {toxinidir}/doc/build/doctrees . {toxinidir}/doc/build/html
|