Hacking package upgraded, code cleaned to enforce new style rules
The hacking package has been upgraded from 'hacking>
The following rules have been added and are now enforced:
- H236 Python 3.x incompatible __metaclass__, use six.add_metaclass()
- H305 imports not grouped correctly
- H307 like imports should be grouped together
- E111 Indentation is not a multiple of four
- E251 unexpected spaces around keyword / parameter equals
- E265 Block comment should start with '# '
The following rules will be added to the tox.ini ignore list:
- H104 file contains nothing more than comments
- H405 multi line docstring summary not separated with an empty line
- H904 Wrap long lines in parentheses instead of a backslash
- E126 continuation line over-indented for hanging indent
- E128 continuation line under-indented for visual indent
Blueprint information
- Status:
- Complete
- Approver:
- Kiall Mac Innes
- Priority:
- Low
- Drafter:
- Jordan Cazamias
- Direction:
- Approved
- Assignee:
- Jordan Cazamias
- Definition:
- Approved
- Series goal:
- Accepted for juno
- Implementation:
- Implemented
- Milestone target:
- 2014.2
- Started by
- Kiall Mac Innes
- Completed by
- Kiall Mac Innes
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Fix style error H236
Addressed by: https:/
Fix style error E111
Addressed by: https:/
Fix style error E251
Addressed by: https:/
Fix style error E265
Addressed by: https:/
Fix style errors H305 and H307
Addressed by: https:/
Finalize tox.ini codes
Addressed by: https:/
Indent lines for readability