Enable Flake8 Checks on QTIP 53/17353/3
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 21 Jul 2016 15:42:32 +0000 (08:42 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 21 Jul 2016 15:50:44 +0000 (08:50 -0700)
Add '.tox' to list of directories to ignore since it contains unrelated
python code in virtualenvs.

JIRA: QTIP-89

Change-Id: I577c4ea61fe6b76f7f67ec7c9d4af544d0f73f71
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/opnfv/opnfv-lint.yml
jjb/releng-macros.yaml

index 4f3f7ac..9611a38 100644 (file)
@@ -51,7 +51,7 @@
                     comment-contains-value: 'reverify'
             projects:
               - project-compare-type: 'REG_EXP'
-                project-pattern: 'functest|sdnvpn'
+                project-pattern: 'functest|sdnvpn|qtip'
                 branches:
                   - branch-compare-type: 'ANT'
                     branch-pattern: '**/{branch}'
index 7733aba..a69badb 100644 (file)
             # empty string: ""
             FLAKE_COUNT="$(find . \
                 -path './releng_flake8' -prune -o \
+                -path './.tox' -prune -o \
                 -type f -name "*.py" -print | \
                 xargs flake8 --exit-zero -qq --count 2>&1)"
 
               echo "Flake8 Violations: $FLAKE_COUNT" > lint.log
               find . \
                   -path './releng_flake8' -prune -o \
+                  -path './.tox' -prune -o \
                   -type f -name "*.py" -print | \
                   xargs flake8 --exit-zero --first >> violation.log
               SHOWN=$(wc -l violation.log | cut -d' ' -f1)