Fix E265, E129, E113 errors in tackerclient code

This Patch fixes all E265, E129, E113 errors and enables this test for all new patches to tacker.
[E265] block comment should start with '# '
[E129] visually indented line with same indent as next logical line
[E113] unexpected indentation

Change-Id: I708dd9e0c4f3edb0b52a865578aceace726d1c2e
Related-Bug: 1516045
This commit is contained in:
Martin Oemke 2015-12-18 15:44:30 +01:00
parent d224c22a46
commit 196ba01bac
3 changed files with 6 additions and 9 deletions
tackerclient
tacker/v1_0
tests/unit
tox.ini

@ -362,8 +362,8 @@ class TackerCommand(command.OpenStackCommand):
# NOTE(markmcclain): This is no longer supported in cliff version 1.5.2
# see https://bugs.launchpad.net/python-tackerclient/+bug/1265926
#if hasattr(self, 'formatters'):
#self.formatters['table'] = TableFormater()
# if hasattr(self, 'formatters'):
# self.formatters['table'] = TableFormater()
def get_client(self):
return self.app.client_manager.tacker

@ -118,7 +118,7 @@ class ShellTest(testtools.TestCase):
'either --os-url or env[OS_URL]', stderr.strip())
def test_auth(self):
#import pdb; pdb.set_trace()
# import pdb; pdb.set_trace()
tacker_shell = openstack_shell.TackerShell('1.0')
self.addCleanup(self.mox.UnsetStubs)
self.mox.StubOutWithMock(clientmanager.ClientManager, '__init__')

@ -29,10 +29,7 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
# H302 import only modules
# H105 Don't use author tags
# H405 multi line docstring summary not separated with an empty line
# E265 block comment should start with '# '
# H238 old style class declaration, use new style (inherit from `object`)
# E129 visually indented line with same indent as next logical line
# E113 unexpected indentation
ignore = E125,H302,H105,H405,E265,H238,E129,E113
ignore = E125,H302,H105,H405,H238
show-source = true
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools