Skip to content

Commit 0059f04

Browse files
author
Dean Troyer
committed
Ignore most of the new hacking 0.9.2 rules
So we can update requriements.txt. But fix a couple of easy ones: * Fix E251 (1 occurrance) * Fix E131 (1 occurrance) Change-Id: I62aaa423aa6da9e9f0ca026ec586b51cc6a6df03
1 parent 497a389 commit 0059f04

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎openstackclient/compute/v2/usage.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_parser(self, prog_name):
3636
metavar="<start>",
3737
default=None,
3838
help="Usage range start date, ex 2012-01-20"
39-
" (default: 4 weeks ago)."
39+
" (default: 4 weeks ago)."
4040
)
4141
parser.add_argument(
4242
"--end",

‎openstackclient/tests/common/test_utils.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ def test_find_resource_find(self):
107107

108108
def test_find_resource_find_not_found(self):
109109
self.manager.get = mock.Mock(side_effect=Exception('Boom!'))
110-
self.manager.find = mock.Mock(side_effect=
111-
exceptions.NotFound(404, "2"))
110+
self.manager.find = mock.Mock(
111+
side_effect=exceptions.NotFound(404, "2")
112+
)
112113
result = self.assertRaises(exceptions.CommandError,
113114
utils.find_resource,
114115
self.manager,

‎tox.ini‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ commands = python setup.py test --coverage --testr-args='{posargs}'
2424
downloadcache = ~/cache/pip
2525

2626
[flake8]
27-
ignore = E126,E202,W602,H302,H402
27+
ignore = E126,E202,W602,H302,H402,E265,H305,H307,H405,H904
2828
show-source = True
2929
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools

0 commit comments

Comments
 (0)