Browse Source

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>
Al Bailey 3 months ago
parent
commit
c4c4191a91
1 changed files with 9 additions and 4 deletions
  1. 9
    4
      tox.ini

+ 9
- 4
tox.ini View File

@@ -23,19 +23,24 @@ commands =
23 23
          -name \*.sh                          \
24 24
          -print0 | xargs -0 bashate -iE006 -v"
25 25
   bash -c "find {toxinidir}        \
26
-            \( -name middleware/io-monitor/recipes-common/io-monitor/io-monitor/io_monitor/test-tools/yaml/* -prune \) \
27
-            -o \( -name .tox -prune \)         \
26
+            \( -name .tox -prune \)         \
28 27
             -o -type f -name '*.yaml'       \
29 28
             -print0 | xargs -0 yamllint"
30 29
 
30
+[flake8]
31
+exclude=.tox
32
+# H102 Apache 2.0 license header not found
33
+ignore=H102
34
+
31 35
 [testenv:pep8]
32 36
 basepython = python3
33 37
 usedevelop = False
34 38
 skip_install = True
39
+# hacking pins the version of flake8
35 40
 deps =
36
-    pep8
41
+    hacking!=0.13.0,<0.14,>=0.12.0 
37 42
 commands =
38
-    pep8
43
+    flake8
39 44
 
40 45
 [testenv:venv]
41 46
 basepython = python3

Loading…
Cancel
Save