Bug 1042216

Summary: [RFE][heat]: Reduce number of flake/pep8 ignored rules.
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: Upstream M3Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/heat/+spec/reduce-flake8-ignored-rules
Whiteboard: upstream_milestone_next upstream_status_started upstream_definition_approved
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 16:54:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 21:23:30 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/heat/+spec/reduce-flake8-ignored-rules.

Description:

Heat tox.ini has several ignored flake/pep8 rules. To make code more clean would be better to reduce it's numbers
 F841 local variable 'json_template' is assigned to but never used
 H201 no 'except:' at least use 'except Exception:'
 H302 import only modules.'bla..' does not import a module
 H306 imports not in alphabetical order
 H404 multi line docstring should start with a summary

First step - H201:
heat/db/sqlalchemy/migrate_repo/versions/015_grizzly.py:157:15: H201  no 'except:' at least use 'except Exception:'
        except:
              ^
heat/db/sqlalchemy/migrate_repo/versions/018_resource_id_uuid.py:35:11: H201  no 'except:' at least use 'except Exception:'
    except:
          ^
heat/engine/resource.py:414:15: H201  no 'except:' at least use 'except Exception:'
        except:
              ^
heat/engine/resource.py:638:15: H201  no 'except:' at least use 'except Exception:'
        except:
              ^
heat/engine/scheduler.py:242:31: H201  no 'except:' at least use 'except Exception:'
                        except:
                              ^
heat/engine/scheduler.py:257:19: H201  no 'except:' at least use 'except Exception:'
            except:
                  ^
heat/engine/scheduler.py:305:15: H201  no 'except:' at least use 'except Exception:'
        except:
              ^
heat/engine/scheduler.py:419:15: H201  no 'except:' at least use 'except Exception:'
        except:
              ^
heat/tests/test_engine_service.py:223:19: H201  no 'except:' at least use 'except Exception:'
            except:
                  ^
heat/tests/utils.py:69:15: H201  no 'except:' at least use 'except Exception:'
        except:
              ^
heat/tests/utils.py:107:15: H201  no 'except:' at least use 'except Exception:'
        except:


Specification URL (additional information):

None