From cf907430dbc30004ebd979abff7fe2d4479cdfb2 Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Fri, 18 May 2018 18:18:33 +0100 Subject: [PATCH] [trivial] Rename tox jobs for zuul This patchset renames the tox.ini jobs: * lint => pep8 to comply with OpenStack standards [0]. This is needed so that [1] works seamlessly (it will enable py35 and cover jobs for Pegleg). [0] e.g. https://github.com/openstack/nova/blob/04469a5181b82b09a43bfd401fde6ab13ff80160/tox.ini#L119 [1] I174d5df008f6e000da1a3878afe75919312ea7aa Change-Id: Ic3a5f2391e129cae32f60c0fb17197169df1b4c6 --- Makefile | 2 +- src/bin/pegleg/tox.ini | 4 ++-- tox.ini | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 885c9643..7a32fc54 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ clean: .PHONY: py_lint py_lint: - cd src/bin/pegleg;tox -e lint + cd src/bin/pegleg;tox -e pep8 .PHONY: py_format py_format: diff --git a/src/bin/pegleg/tox.ini b/src/bin/pegleg/tox.ini index c6795d50..cce83074 100644 --- a/src/bin/pegleg/tox.ini +++ b/src/bin/pegleg/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py35, lint +envlist = py35, pep8 skipsdist = True [testenv] @@ -19,7 +19,7 @@ deps = yapf==0.20.0 commands = yapf --style=pep8 -ir {toxinidir}/pegleg {toxinidir}/tests -[testenv:lint] +[testenv:pep8] deps = yapf==0.20.0 flake8==3.5.0 diff --git a/tox.ini b/tox.ini index 91069dd4..9e1c2902 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py35, lint, docs +envlist = py35, pep8, docs # Allows docs to be built without setup.py having to exist. Requires that # usedevelop be False as well (which it is by default). skipsdist = True @@ -20,7 +20,7 @@ commands = tox -c src/bin/pegleg/tox.ini -e fmt whitelist_externals = tox -[testenv:lint] +[testenv:pep8] commands = tox -c src/bin/pegleg/tox.ini -e lint whitelist_externals = tox