]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
tox: Fix flake8 invocation 254/head
authorZack Cerza <zack@redhat.com>
Fri, 10 Jul 2020 19:35:32 +0000 (13:35 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 10 Jul 2020 19:36:09 +0000 (13:36 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index e0a92594ce858380eaddc6040cf1f8e147a9b338..8925e866560e7b17ab4521d8a808aaaa6c4aa849 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -2,6 +2,9 @@
 skipsdist = True
 envlist=ansible-lint,ansible-syntax,flake8,dashboards
 
+[testenv]
+basepython=python2
+
 [testenv:ansible-lint]
 install_command = pip install --upgrade {opts} {packages}
 deps=
@@ -20,7 +23,7 @@ commands=
 install_command = pip install --upgrade {opts} {packages}
 deps=
   flake8
-commands=flake8 --select=F,E9 {posargs:*.py collectors tests}
+commands=flake8 --select=F,E9 {posargs:cephmetrics.py dashUpdater.py collectors tests}
 
 # Integration tests must operate against a live deployment. To run, simply:
 #   tox -e integration /path/to/inventory