Update hacking to 0.10

Release notes:
http://git.openstack.org/cgit/openstack-dev/hacking/tag/?id=0.10.0

* Remove references in tox.ini to removed rules.
* Minor fixes to pass new W292 (no newline at the end of file) and H238
  (old style classes) rules.

Change-Id: I6d990a564df6a312bd09b2a152315bbdba732082
This commit is contained in:
Ihar Hrachyshka 2015-01-12 17:42:34 +01:00
parent 13fb1a8ccb
commit f9d6675c88
5 changed files with 5 additions and 8 deletions

View File

@ -83,4 +83,4 @@ def run_migrations_online():
if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online()
run_migrations_online()

View File

@ -613,7 +613,7 @@ class VPNPluginDb(vpnaas.VPNPluginBase, base_db.CommonDbMixin):
vpnservice_id=vpnservices['id'])
class VPNPluginRpcDbMixin():
class VPNPluginRpcDbMixin(object):
def _get_agent_hosting_vpn_services(self, context, host):
plugin = manager.NeutronManager.get_plugin()

View File

@ -87,7 +87,7 @@ def _get_template(template_file):
@six.add_metaclass(abc.ABCMeta)
class BaseSwanProcess():
class BaseSwanProcess(object):
"""Swan Family Process Manager
This class manages start/restart/stop ipsec process.

View File

@ -1,7 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=0.9.2,<0.10
hacking>=0.10.0,<0.11
cliff>=1.7.0 # Apache-2.0
coverage>=3.6

View File

@ -71,12 +71,9 @@ commands = python setup.py build_sphinx
# E129 visually indented line with same indent as next logical line
# E265 block comment should start with #
# H305 imports not grouped correctly
# H307 like imports should be grouped together
# H402 one line docstring needs punctuation
# H405 multi line docstring summary not separated with an empty line
# H904 Wrap long lines in parentheses instead of a backslash
# TODO(marun) H404 multi line docstring should start with a summary
ignore = E125,E126,E128,E129,E265,H305,H307,H402,H404,H405,H904
ignore = E125,E126,E128,E129,E265,H305,H404,H405
show-source = true
builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios