Clean up removed hacking rule from [flake8] ignore lists

We bump hacking>=0.10.0, and hacking removed some rules, for
the full list of rules please see [1]. So don't need them any more.

Hacking related commits:
Remove H904 in commit b1fe19ebebe47a36b905d709467f5e82521bbd96
Remove H803 in commit f01ce4fd822546cbd52a0aedc49184bddbfe1b10
Remove H307 in commit ec4833b206c23b0b6f9c6b101c70ab925a5e9c67
Remove H305 in commit 8f1fcbdb9aa4fc61349e5e879153c722195b1233

[1]https://github.com/openstack-dev/hacking/blob/master/setup.cfg#L30

Change-Id: Ia20b3570c1a28b3431a9115599a4a11366489edc
This commit is contained in:
LiuNanke 2016-01-14 16:37:04 +08:00
parent d002bdef2f
commit be8ea6c826
5 changed files with 6 additions and 11 deletions

View File

@ -1,7 +1,5 @@
# Copyright 2013 IBM Corp
#
# Author: Tong Li <litong01@us.ibm.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

View File

@ -17,4 +17,4 @@ from falcon.http_error import HTTPError
class HTTPUnprocessableEntityError(HTTPError):
def __init__(self, title, description, **kwargs):
HTTPError.__init__(self, '422 Unprocessable Entity', title, description, **kwargs)
HTTPError.__init__(self, '422 Unprocessable Entity', title, description, **kwargs)

View File

@ -29,4 +29,4 @@ class Version2(object):
'status': 'CURRENT',
'updated': "2013-03-06T00:00:00.000Z"
}
res.body = json.dumps(result)
res.body = json.dumps(result)

View File

@ -1,11 +1,11 @@
# Hacking already pins down pep8, pyflakes and flake8
hacking>=0.9.2,<0.10
hacking<0.11,>=0.10.0
Babel>=1.3
coverage>=3.6
discover
fixtures>=0.3.14
flake8==2.1.0
pep8<=1.5.6
flake8==2.2.4
pep8==1.5.7
httplib2>=0.7.5
mock>=1.0
funcsigs

View File

@ -36,11 +36,8 @@ commands = {posargs}
# TODO: ignored checks should be enabled in the future
# H201 no 'except:' at least use 'except Exception:'
# H302 import only modules
# H305 imports not grouped correctly
# H307 like imports should be grouped together
# H405 multi line docstring summary not separated with an empty line
# H904 Wrap long lines in parentheses instead of a backslash
ignore = F821,H201,H302,H305,H307,H405,H904
ignore = F821,H201,H302,H405
max-complexity = 50
max-line-length = 120
builtins = _