Start enforcing E125 flake8 directive

Removed E125 (continuation line does not distinguish itself
from next logical line) from the ignore list and fixed all
the indentation issues.  Recently done in neutron tree.

Change-Id: Id002c874af7197823df4577035803528296dd4b7
This commit is contained in:
Brian Haley 2019-08-13 12:09:57 -04:00
parent 99684ac97e
commit d11f4ec31a
3 changed files with 4 additions and 5 deletions

View File

@ -136,7 +136,7 @@ class FWaaSClientMixin(object):
nl_constants.PENDING_UPDATE])
def _wait_firewall_group_while(self, firewall_group_id, statuses,
not_found_ok=False):
not_found_ok=False):
start = int(time.time())
if not_found_ok:
expected_exceptions = (lib_exc.NotFound)

View File

@ -170,8 +170,8 @@ class BaseTempestTestCase(base_api.BaseNetworkTest):
client = client or cls.os_primary.interfaces_client
client.delete_interface(server_id, port_id=port_id)
def setup_network_and_server(
self, router=None, server_name=None, network=None, **kwargs):
def setup_network_and_server(self, router=None, server_name=None,
network=None, **kwargs):
"""Create network resources and a server.
Creating a network, subnet, router, keypair, security group

View File

@ -55,12 +55,11 @@ basepython = python3
commands = oslo_debug_helper -t neutron_tempest_plugin/ {posargs}
[flake8]
# E125 continuation line does not distinguish itself from next logical line
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E129 visually indented line with same indent as next logical line
# N530 direct neutron imports not allowed
ignore = E125,E126,E128,E129,N530
ignore = E126,E128,E129,N530
# H106: Don't put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
# H204: Use assert(Not)Equal to check for equality