]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Enable H403
authorDirk Mueller <dirk@dmllr.de>
Fri, 7 Jun 2013 13:44:23 +0000 (15:44 +0200)
committerDirk Mueller <dirk@dmllr.de>
Fri, 7 Jun 2013 13:44:23 +0000 (15:44 +0200)
Fix the only two places where it triggered alongway.

Change-Id: Ib76e0e072c2d51a9c782f37d5f5df964f2db968f

heat/common/template_format.py
heat/db/sqlalchemy/models.py
tox.ini

index 020efc7cf73aa25650a7546d700ef11f0a1fdc84..76c8043e79b40418a414d3d0a6f5aaac49c61717 100644 (file)
@@ -68,7 +68,8 @@ def default_for_missing(tpl, version_param, versions):
 
 def convert_json_to_yaml(json_str):
     '''Convert a string containing the AWS JSON template format
-    to an equivalent string containing the Heat YAML format.'''
+    to an equivalent string containing the Heat YAML format.
+    '''
 
     global key_order
     # Replace AWS format version with Heat format version
index 79ca9c759db3a39e5ec77635a6c5eee82dd01b15..8dc553dfec87cfb4e16ae80f2d069670788657d4 100644 (file)
@@ -124,7 +124,8 @@ class HeatBase(object):
     def iteritems(self):
         """Make the model object behave like a dict.
 
-        Includes attributes from joins."""
+        Includes attributes from joins.
+        """
         local = dict(self)
         joined = dict([(k, v) for k, v in self.__dict__.iteritems()
                       if not k[0] == '_'])
diff --git a/tox.ini b/tox.ini
index 82c25e87bb298d863a3b9d75accfc7c9222c0b9c..fe0a43515246d8e63fe59e9ceae9df5b4001f04a 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -22,7 +22,7 @@ commands =
   python setup.py testr --coverage
 
 [flake8]
-ignore = F403,F841,H201,H302,H303,H306,H403,H404,H702,H703
+ignore = F403,F841,H201,H302,H303,H306,H404,H702,H703
 show-source = true
 builtins = _
 exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,build