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: Iafb959ea0c81fd0a89faee48949dc0f0af3457b5
This commit is contained in:
huang.zhiping 2018-10-03 01:58:43 +00:00
parent c13558ba09
commit 4748818fa8
1 changed files with 2 additions and 0 deletions

View File

@ -25,12 +25,14 @@ description = Runs set of linters against codebase (checkniceness)
commands = {[testenv:checkniceness]commands}
[testenv:checkniceness]
basepython = python3
description = Validates (pep-like) documenation
skip_install = True
usedevelop = False
commands = doc8 --file-encoding utf-8 {toxinidir}/doc
[testenv:spelling]
basepython = python3
deps =
-r{toxinidir}/requirements.txt
sphinxcontrib-spelling