From db8bc28573ee0769b5f40b8d31fecf6414b7e165 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 12 Oct 2018 14:58:28 -0400 Subject: [PATCH] add pep8 to tox.ini Add a separate pep8 environment in tox.ini for linting only the code changes. We don't need to add the zuul job because flake8 also runs as part of the linters environment and job. Change-Id: Ie6bbdfdecef43666cb0eb5d3ff4a34a7067daed2 Signed-off-by: Doug Hellmann --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index eef8c9649..d001ef17f 100644 --- a/tox.ini +++ b/tox.ini @@ -23,6 +23,11 @@ commands = {toxinidir}/tools/validate_repositories.py {toxinidir}/tools/validate_atcs.py +[testenv:pep8] +basepython = python3 +commands = + flake8 + [testenv:venv] basepython = python3 commands = {posargs}