charms.openstack/tox.ini
James Page f0a486c59d Drop flake8 upper version constraint
Clear up lint as a result of new pep8/flake8 version.

Change-Id: I3698766cb751b31ef1e6b806baa45c1cf6f7d899
2020-06-08 10:29:45 +01:00

51 lines
1.1 KiB
INI

[tox]
envlist = pep8,py3
skipsdist = True
skip_missing_interpreters = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
install_command =
pip install {opts} {packages}
commands = stestr run {posargs}
[testenv:py27]
basepython = python2.7
deps = -r{toxinidir}/test-requirements.txt
# Py27 needs to be disabled as upstream charms.reactive is not Py3.5+ only
# However, we can't yet remove the actually py27 test from the gate.
commands = python -c "print('Py27 testing disabled.')" && /bin/true
[testenv:py3]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
[testenv:py34]
basepython = python3.4
deps = -r{toxinidir}/test-requirements.txt
[testenv:py36]
basepython = python3.6
deps = -r{toxinidir}/test-requirements.txt
[testenv:py37]
basepython = python3.7
deps = -r{toxinidir}/test-requirements.txt
[testenv:py38]
basepython = python3.8
deps = -r{toxinidir}/test-requirements.txt
[testenv:pep8]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs} charms_openstack unit_tests
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
ignore = E402,E226,W504