From 15a93345185af127c8e29e76110b07283b32ea37 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 10 Feb 2016 22:17:35 +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. Needed-By: I8d83c049165cfffd165b2e83b2ed37c1407849e3 Change-Id: Iab513d7f3a087ff7042be5cf00be4a4d2677e2cd --- tox.ini | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index d2cc147..fde5a50 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = py27,linters +envlist = py27,pep8 skipsdist = True [testenv] @@ -20,6 +20,12 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:genconfig] commands = oslo-config-generator --config-file=etc/terracotta-config-generator.conf +[testenv:pep8] +commands = + bash tools/flake8wrap.sh {posargs} + +# Temporary environment until infra jobs are changed. +# TODO(jaegerandi): remove this [testenv:linters] commands = bash tools/flake8wrap.sh {posargs}