make checkniceness an alias for linters in tox

The parent patch added a linters environment as an alias for
checkniceness. This makes linters the "real" environment and
checkniceness the alias.

Change-Id: I9778abf3315e62f9db2a8d98dfb4bc5e9e2e869d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-10-09 10:04:06 -04:00
parent 9433df553e
commit adefde9826
1 changed files with 6 additions and 5 deletions

11
tox.ini
View File

@ -1,6 +1,6 @@
[tox]
minversion = 1.6
envlist = checkniceness,checkbuild
envlist = linters,checkbuild
skipsdist = True
[testenv]
@ -23,15 +23,16 @@ commands =
{toxinidir}/tools/build-all-rst.sh --linkcheck
[testenv:checkniceness]
# Will be replaced by linters
# Replaced in CI with "linters" environment but kept here as a
# backwards-compatibility shim for muscle memory.
commands = {[testenv:linters]commands}
[testenv:linters]
commands =
flake8
doc8 doc
{toxinidir}/tools/glossary-sort.sh
[testenv:linters]
commands = {[testenv:checkniceness]commands}
[testenv:checkbuild]
commands =
{toxinidir}/tools/publishdocs.sh build