Add hacking check

Registered by Ilya Sviridov

Fix broken hacking checks http://docs.openstack.org/developer/hacking/

# H101 Use TODO(NAME)
# H201 no 'except:' at least use 'except Exception:'
# H233 Python 3.x incompatible use of print operator
# H234 assertEquals is deprecated, use assertEqual
# H301 one import per line
# H302 import only modules.
# H305 imports not grouped correctly
# H306 imports not in alphabetical order
# H307 like imports should be grouped together
# H401 docstring should not start with a space
# H402 one line docstring needs punctuation
# H404 multi line docstring should start without a leading new line
# H405 multi line docstring summary not separated with an empty line
# H904 Wrap long lines in parentheses instead of a backslash

Blueprint information

Status:
Started
Approver:
Ilya Sviridov
Priority:
Low
Drafter:
Ilya Sviridov
Direction:
Approved
Assignee:
Andrii Ostapenko
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Slow progress
Milestone target:
milestone icon liberty-1
Started by
Ilya Sviridov

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-openstack-hacking-checck,n,z

Addressed by: https://review.openstack.org/144798
    Prepares to turn on exluded hacking rules

Addressed by: https://review.openstack.org/144842
    Enables H302 rule

Addressed by: https://review.openstack.org/144892
    Makes fixes and enables H401 hacking rule

(?)

Work Items

Work items:
H101 Use TODO(NAME) : TODO
H201 no 'except:' at least use 'except Exception:' : TODO
H233 Python 3.x incompatible use of print operator : TODO
H234 assertEquals is deprecated, use assertEqual : TODO
H301 one import per line : TODO
H302 import only modules. : TODO
H305 imports not grouped correctly : TODO
H306 imports not in alphabetical order : TODO
H307 like imports should be grouped together : TODO
H401 docstring should not start with a space : TODO
H402 one line docstring needs punctuation : TODO
H404 multi line docstring should start without a leading new line : TODO
H405 multi line docstring summary not separated with an empty line : TODO
H904 Wrap long lines in parentheses instead of a backslash : TODO

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.