diff --git a/contrib/rackspace/rackspace/tests/test_cloud_loadbalancer.py b/contrib/rackspace/rackspace/tests/test_cloud_loadbalancer.py index 7f89fa668..002122600 100644 --- a/contrib/rackspace/rackspace/tests/test_cloud_loadbalancer.py +++ b/contrib/rackspace/rackspace/tests/test_cloud_loadbalancer.py @@ -411,8 +411,8 @@ class LoadBalancerTest(common.HeatTestCase): metadata={'yolo': 'heeyyy_gurl'}) expected = self._set_expected(self.expected_body, - sessionPersistence= - {'persistenceType': 'HTTP_COOKIE'}, + sessionPersistence={ + 'persistenceType': 'HTTP_COOKIE'}, connectionLogging={'enabled': True}, metadata=[ {'key': 'yolo', diff --git a/heat/engine/parameters.py b/heat/engine/parameters.py index 6cb147e4a..944fb46e8 100644 --- a/heat/engine/parameters.py +++ b/heat/engine/parameters.py @@ -536,12 +536,12 @@ class Parameters(collections.Mapping): yield Parameter(self.PARAM_REGION, Schema(Schema.STRING, default='ap-southeast-1', - constraints= - [constr.AllowedValues(['us-east-1', - 'us-west-1', - 'us-west-2', - 'sa-east-1', - 'eu-west-1', - 'ap-southeast-1', - 'ap-northeast-1'] - )])) + constraints=[ + constr.AllowedValues(['us-east-1', + 'us-west-1', + 'us-west-2', + 'sa-east-1', + 'eu-west-1', + 'ap-southeast-1', + 'ap-northeast-1'] + )])) diff --git a/tox.ini b/tox.ini index c5200d10f..dd8b407d4 100644 --- a/tox.ini +++ b/tox.ini @@ -52,7 +52,6 @@ commands = python setup.py build_sphinx commands = oslo-config-generator --config-file=config-generator.conf [flake8] -# E251 unexpected spaces around keyword / parameter equals # H202 assertRaises Exception too broad # H233 Python 3.x incompatible use of print operator # H305 imports not grouped correctly @@ -62,7 +61,7 @@ commands = oslo-config-generator --config-file=config-generator.conf # H405 multi line docstring summary not separated with an empty line # H803 no full stop at the end of the commit message # H904 Wrap long lines in parentheses instead of a backslash -ignore = E251,H202,H233,H305,H307,H402,H404,H405,H803,H904 +ignore = H202,H233,H305,H307,H402,H404,H405,H803,H904 show-source = true exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,tools,build max-complexity=20