Cleanup code and remove newly ignored hack rules
newer hacking has rules for the following: H105 Don't use author tags H238 old style class declaration, use new style (inherit from `object`) W292 no newline at end of file So we need to clean them up and stop ignoring them Change-Id: I12b995cf87d6bc0938298f397b41a4693627bb4b
This commit is contained in:
parent
e9dba9d4cd
commit
d43259dbf2
|
@ -2,8 +2,6 @@
|
|||
#
|
||||
# Copyright © 2012 New Dream Network, LLC (DreamHost)
|
||||
#
|
||||
# Author: Doug Hellmann <doug.hellmann@dreamhost.com>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#
|
||||
# Copyright © 2012 New Dream Network, LLC (DreamHost)
|
||||
#
|
||||
# Author: Doug Hellmann <doug.hellmann@dreamhost.com>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#
|
||||
# Copyright © 2012 New Dream Network, LLC (DreamHost)
|
||||
#
|
||||
# Author: Doug Hellmann <doug.hellmann@dreamhost.com>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#
|
||||
# Copyright ? 2012 New Dream Network, LLC (DreamHost)
|
||||
#
|
||||
# Author: Doug Hellmann <doug.hellmann@dreamhost.com>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
|
|
|
@ -32,7 +32,7 @@ from magnum.openstack.common import versionutils
|
|||
LOG = logging.getLogger('object')
|
||||
|
||||
|
||||
class NotSpecifiedSentinel:
|
||||
class NotSpecifiedSentinel(object):
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ class FakePecanResponse(mock.Mock):
|
|||
self.status = None
|
||||
|
||||
|
||||
class FakeApp:
|
||||
class FakeApp(object):
|
||||
pass
|
||||
|
||||
|
||||
|
|
3
tox.ini
3
tox.ini
|
@ -40,7 +40,6 @@ commands =
|
|||
# The rest of the ignores are TODOs
|
||||
# New from hacking 0.9: E129, E131, H407, H405, H904
|
||||
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
|
||||
# TODO(dims): Fix temporarily ignored H105, H238, W292
|
||||
|
||||
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H302,H105,H238,H405,H803,H904,E711,W292
|
||||
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H302,H405,H803,H904,E711
|
||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|
||||
|
|
Loading…
Reference in New Issue