Migrate to flake8.

Fixes bug 1172444

Change-Id: Ieca721663aea2fd31753df4abfb5b01a7145b26a
This commit is contained in:
Monty Taylor
2013-05-14 08:29:16 -07:00
parent 2a2a6bc735
commit 3024e0f8fd
2 changed files with 8 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ from cliff import app
from cliff import help from cliff import help
from openstackclient.common import clientmanager from openstackclient.common import clientmanager
from openstackclient.common.commandmanager import CommandManager from openstackclient.common import commandmanager
from openstackclient.common import exceptions as exc from openstackclient.common import exceptions as exc
from openstackclient.common import openstackkeyring from openstackclient.common import openstackkeyring
from openstackclient.common import utils from openstackclient.common import utils
@@ -63,7 +63,7 @@ class OpenStackShell(app.App):
super(OpenStackShell, self).__init__( super(OpenStackShell, self).__init__(
description=__doc__.strip(), description=__doc__.strip(),
version=VERSION, version=VERSION,
command_manager=CommandManager('openstack.cli')) command_manager=commandmanager.CommandManager('openstack.cli'))
# This is instantiated in initialize_app() only when using # This is instantiated in initialize_app() only when using
# password flow auth # password flow auth

View File

@@ -11,8 +11,7 @@ deps = -r{toxinidir}/tools/pip-requires
commands = python setup.py testr --testr-args='{posargs}' commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8] [testenv:pep8]
deps = pep8==1.3.3 commands = flake8
commands = pep8 --ignore=E126,E202,W602 --repeat --show-source openstackclient setup.py
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
@@ -22,3 +21,8 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
[tox:jenkins] [tox:jenkins]
downloadcache = ~/cache/pip downloadcache = ~/cache/pip
[flake8]
ignore = E126,E202,W602,H402
show-source = True
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools