Enable check for E121
E121 continuation line under-indented for hanging indent Change-Id: I4cf246e3ec932ba0d2391eb8bcb793b28b005b4c
This commit is contained in:
parent
963484513d
commit
7fc1588dfd
@ -204,12 +204,13 @@ class ShellTest(utils.TestCase):
|
|||||||
dist_version.StrictVersion('0.7.2')):
|
dist_version.StrictVersion('0.7.2')):
|
||||||
ex = '\n'
|
ex = '\n'
|
||||||
else:
|
else:
|
||||||
ex = (
|
ex = '\n'.join([
|
||||||
'+----+------+--------+------------+-------------+----------+\n'
|
'+----+------+--------+------------+-------------+----------+',
|
||||||
'| ID | Name | Status | Task State | Power State | Networks |\n'
|
'| ID | Name | Status | Task State | Power State | Networks |',
|
||||||
'+----+------+--------+------------+-------------+----------+\n'
|
'+----+------+--------+------------+-------------+----------+',
|
||||||
'+----+------+--------+------------+-------------+----------+\n'
|
'+----+------+--------+------------+-------------+----------+',
|
||||||
)
|
''
|
||||||
|
])
|
||||||
self.make_env(exclude='OS_PASSWORD')
|
self.make_env(exclude='OS_PASSWORD')
|
||||||
stdout, stderr = self.shell('list')
|
stdout, stderr = self.shell('list')
|
||||||
self.assertEqual((stdout + stderr), ex)
|
self.assertEqual((stdout + stderr), ex)
|
||||||
|
@ -2072,8 +2072,8 @@ class FakeHTTPClient(base_client.HTTPClient):
|
|||||||
return self.get_os_cells_capacities()
|
return self.get_os_cells_capacities()
|
||||||
|
|
||||||
def get_os_migrations(self, **kw):
|
def get_os_migrations(self, **kw):
|
||||||
migrations = {'migrations':
|
migrations = {'migrations': [
|
||||||
[{
|
{
|
||||||
"created_at": "2012-10-29T13:42:02.000000",
|
"created_at": "2012-10-29T13:42:02.000000",
|
||||||
"dest_compute": "compute2",
|
"dest_compute": "compute2",
|
||||||
"dest_host": "1.2.3.4",
|
"dest_host": "1.2.3.4",
|
||||||
|
@ -486,8 +486,8 @@ class ServerManager(base.BootingManagerWithFind):
|
|||||||
body["server"]["max_count"] = max_count
|
body["server"]["max_count"] = max_count
|
||||||
|
|
||||||
if security_groups:
|
if security_groups:
|
||||||
body["server"]["security_groups"] =\
|
body["server"]["security_groups"] = [{'name': sg}
|
||||||
[{'name': sg} for sg in security_groups]
|
for sg in security_groups]
|
||||||
|
|
||||||
# Files are a slight bit tricky. They're passed in a "personality"
|
# Files are a slight bit tricky. They're passed in a "personality"
|
||||||
# list to the POST. Each item is a dict giving a file name and the
|
# list to the POST. Each item is a dict giving a file name and the
|
||||||
|
@ -428,8 +428,8 @@ class ServerManager(base.BootingManagerWithFind):
|
|||||||
body["server"]["os-multiple-create:max_count"] = max_count
|
body["server"]["os-multiple-create:max_count"] = max_count
|
||||||
|
|
||||||
if security_groups:
|
if security_groups:
|
||||||
body["server"]["security_groups"] = \
|
body["server"]["security_groups"] = [{'name': sg}
|
||||||
[{'name': sg} for sg in security_groups]
|
for sg in security_groups]
|
||||||
|
|
||||||
if availability_zone:
|
if availability_zone:
|
||||||
body["server"][
|
body["server"][
|
||||||
|
5
tox.ini
5
tox.ini
@ -41,8 +41,9 @@ downloadcache = ~/cache/pip
|
|||||||
# H904 wrap long lines in parentheses instead of a backslash
|
# H904 wrap long lines in parentheses instead of a backslash
|
||||||
# reason: removed in hacking (https://review.openstack.org/#/c/101701/)
|
# reason: removed in hacking (https://review.openstack.org/#/c/101701/)
|
||||||
#
|
#
|
||||||
# Additional checks are also ignored on purpose: E12, F811, F821
|
# Additional checks are also ignored on purpose: E122, E123, E124, E126,
|
||||||
ignore = E12,F811,F821,H402,H404,H405,H904
|
# E127, E128, E129, F811, F821
|
||||||
|
ignore = E122,E123,E124,E126,E127,E128,E129,F811,F821,H402,H404,H405,H904
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,doc/source/conf.py
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,doc/source/conf.py
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user