fix tox python3 overrides
We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I8a8691d99b12e0020ad19043255c89a663c04d06
This commit is contained in:
parent
19e9e2f4fe
commit
8843aa51e5
20
tox.ini
20
tox.ini
|
@ -24,24 +24,11 @@ commands =
|
|||
|
||||
[testenv:pep8]
|
||||
# TODO: #deps = hacking==0.7
|
||||
basepython = python3
|
||||
deps = flake8
|
||||
usedevelop = False
|
||||
commands =
|
||||
flake8 {posargs:.}
|
||||
|
||||
[testenv:pep8-py34]
|
||||
# TODO: #deps = hacking==0.7
|
||||
deps = flake8
|
||||
usedevelop = False
|
||||
commands =
|
||||
flake8 {posargs:.}
|
||||
|
||||
[testenv:pep8-py35]
|
||||
# TODO: #deps = hacking==0.7
|
||||
deps = flake8
|
||||
usedevelop = False
|
||||
commands =
|
||||
flake8 {posargs:.}
|
||||
flake8 {posargs:.}
|
||||
|
||||
[flake8]
|
||||
ignore = H302,H802
|
||||
|
@ -51,6 +38,7 @@ show-source = True
|
|||
count = True
|
||||
|
||||
[testenv:pylint]
|
||||
basepython = python3
|
||||
deps=
|
||||
{[testenv]deps}
|
||||
pylint
|
||||
|
@ -84,6 +72,7 @@ commands=pylint fuel_tests
|
|||
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python3
|
||||
changedir = doc
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
|
@ -91,6 +80,7 @@ deps =
|
|||
commands = sphinx-build -b html -d _build/doctrees . _build/html
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
commands =
|
||||
|
|
Loading…
Reference in New Issue