summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Bailey <Al.Bailey@windriver.com>2019-01-17 10:09:52 -0600
committerAl Bailey <Al.Bailey@windriver.com>2019-01-17 10:11:24 -0600
commitc4c4191a91f4740f17c165c7caf41d15abeac989 (patch)
treedf018957d27eef6c2f9a517d4558743199b6aada
parent3e9e47392a980ea153f35552c9e91cf5ecba568b (diff)
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 <Al.Bailey@windriver.com>
Notes
Notes (review): Code-Review+2: jerry <jerry.sun@windriver.com> Workflow+1: jerry <jerry.sun@windriver.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 18 Jan 2019 15:26:33 +0000 Reviewed-on: https://review.openstack.org/631547 Project: openstack/stx-clients Branch: refs/heads/master
-rw-r--r--tox.ini13
1 files 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 =
23 -name \*.sh \ 23 -name \*.sh \
24 -print0 | xargs -0 bashate -iE006 -v" 24 -print0 | xargs -0 bashate -iE006 -v"
25 bash -c "find {toxinidir} \ 25 bash -c "find {toxinidir} \
26 \( -name middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/test-tools/yaml/* -prune \) \ 26 \( -name .tox -prune \) \
27 -o \( -name .tox -prune \) \
28 -o -type f -name '*.yaml' \ 27 -o -type f -name '*.yaml' \
29 -print0 | xargs -0 yamllint" 28 -print0 | xargs -0 yamllint"
30 29
30[flake8]
31exclude=.tox
32# H102 Apache 2.0 license header not found
33ignore=H102
34
31[testenv:pep8] 35[testenv:pep8]
32basepython = python3 36basepython = python3
33usedevelop = False 37usedevelop = False
34skip_install = True 38skip_install = True
39# hacking pins the version of flake8
35deps = 40deps =
36 pep8 41 hacking!=0.13.0,<0.14,>=0.12.0
37commands = 42commands =
38 pep8 43 flake8
39 44
40[testenv:venv] 45[testenv:venv]
41basepython = python3 46basepython = python3