Enable F403 and F999 check

* F403 has already been fix in https://review.openstack.org/#/c/38435/.
* This patch fixes the remaining F999 issue.

Change-Id: Id484a577973bb56168b6d85a5fc909a471e1128c
This commit is contained in:
Kun Huang 2013-09-06 02:10:32 +08:00
parent c6d02d6be4
commit d455336685
2 changed files with 3 additions and 5 deletions

View File

@ -55,9 +55,9 @@ class TestData(object):
>>> import glance_data >>> import glance_data
>>> TEST = TestData(glance_data.data) >>> TEST = TestData(glance_data.data)
>>> TEST.images.list() >>> TEST.images.list()
... [<Image: visible_image>, <Image: invisible_image>] [<Image: visible_image>, <Image: invisible_image>]
>>> TEST.images.first() >>> TEST.images.first()
... <Image: visible_image> <Image: visible_image>
You can load as little or as much data as you like as long as the loaders You can load as little or as much data as you like as long as the loaders
don't conflict with each other. don't conflict with each other.

View File

@ -35,10 +35,8 @@ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,p
# E126 continuation line over-indented for hanging indent # E126 continuation line over-indented for hanging indent
# E127 continuation line over-indented for visual indent # E127 continuation line over-indented for visual indent
# E128 continuation line under-indented for visual indent # E128 continuation line under-indented for visual indent
# F403 'from <smth> import *' used; unable to detect undefined names
# F999 syntax error in doctest
# H102 Apache 2.0 license header not found # H102 Apache 2.0 license header not found
# H4xx docstrings # H4xx docstrings
# H701 empty localization string # H701 empty localization string
# H702 Formatting operation should be outside of localization method call # H702 Formatting operation should be outside of localization method call
ignore = E126,E127,E128,F403,F999,H102,H4,H701,H702 ignore = E126,E127,E128,H102,H4,H701,H702