From: Zack Cerza Date: Fri, 10 Jul 2020 19:35:32 +0000 (-0600) Subject: tox: Fix flake8 invocation X-Git-Tag: v2.0.10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F254%2Fhead;p=cephmetrics.git tox: Fix flake8 invocation Signed-off-by: Zack Cerza --- diff --git a/tox.ini b/tox.ini index e0a9259..8925e86 100644 --- 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