From 8ad0b110657b2be1347b467236a74ed96aae0d02 Mon Sep 17 00:00:00 2001
From: Andreas Jaeger <aj@suse.com>
Date: Wed, 10 Feb 2016 21:39:04 +0100
Subject: [PATCH] Make pep8 *the* linting interface

According to the PTI (=Python Test Interface,
http://governance.openstack.org/reference/cti/python_cti.html), pep8
is the interface for codestyle checks. Move all tests from linters to
pep8.

This change will be followed by a change to project-config to use pep8
for testing in the gate.

Change-Id: I1a48f4b1e0b0950640192bcfc55121619a844b50
---
 tox.ini | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index c0a9ff4bf..537da1d38 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,7 @@
 [tox]
 minversion = 1.6
 skipsdist = True
-envlist = py34,py27,linters,pypy
+envlist = py34,py27,pep8,pypy
 
 [testenv]
 usedevelop=True
@@ -16,7 +16,17 @@ commands =
   find . -type f -name "*.pyc" -delete
   python setup.py test --slowest --testr-args='{posargs}'
 
+[testenv:pep8]
+commands =
+  {toxinidir}/tools/run-bashate.sh
+  flake8 {posargs}
+  {toxinidir}/tools/validate-all-json.sh
+  {toxinidir}/tools/validate-all-yaml.sh
+  {toxinidir}/tools/validate-all-maintainer.sh
+
 [testenv:linters]
+# temporary environment until infra jobs are changed.
+# TODO(jaegerandi): remove this
 commands =
   {toxinidir}/tools/run-bashate.sh
   flake8 {posargs}
-- 
GitLab