From adefde98264b2c752a7e6d3c23c43b59ec0e8425 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Mon, 9 Oct 2017 10:04:06 -0400 Subject: [PATCH] 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 --- tox.ini | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 91d057a6fc..9c78792879 100644 --- a/tox.ini +++ b/tox.ini @@ -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