From c4c4191a91f4740f17c165c7caf41d15abeac989 Mon Sep 17 00:00:00 2001 From: Al Bailey Date: Thu, 17 Jan 2019 10:09:52 -0600 Subject: [PATCH] Minor tox cleanup for linters and pep8 linters yamllint target was excluding a folder that did not exist pep8 was not invoking flake8, and was not including hacking which pulls in additional checks. Story: 2004515 Task: 28966 Change-Id: I0268f685e4292d93c5ff6014b150b25bfe9cd583 Signed-off-by: Al Bailey --- tox.ini | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index fcc6fc4..f51db0e 100644 --- a/tox.ini +++ b/tox.ini @@ -23,19 +23,24 @@ commands = -name \*.sh \ -print0 | xargs -0 bashate -iE006 -v" bash -c "find {toxinidir} \ - \( -name middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/test-tools/yaml/* -prune \) \ - -o \( -name .tox -prune \) \ + \( -name .tox -prune \) \ -o -type f -name '*.yaml' \ -print0 | xargs -0 yamllint" +[flake8] +exclude=.tox +# H102 Apache 2.0 license header not found +ignore=H102 + [testenv:pep8] basepython = python3 usedevelop = False skip_install = True +# hacking pins the version of flake8 deps = - pep8 + hacking!=0.13.0,<0.14,>=0.12.0 commands = - pep8 + flake8 [testenv:venv] basepython = python3