From 8f8627d5ee6d3985be61c3ba1bbf93977b837791 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 10 Jul 2020 13:35:32 -0600 Subject: [PATCH] tox: Fix flake8 invocation Signed-off-by: Zack Cerza --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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