summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorZhiQiang Fan <zhiqiang.fan@huawei.com>2014-11-13 09:29:54 +0800
committerJamie Lennox <jamielennox@redhat.com>2015-01-20 07:32:20 +0000
commitb2fdd39572cea320524cdb429ec95e36d717c809 (patch)
tree2533c03e68068b165bf8c2d48eb4e2af86f5ce3c /tox.ini
parent1b9b9ed9059333fdbf84ba5e9d1ec72795c74fb6 (diff)
downloadpython-keystoneclient-b2fdd39572cea320524cdb429ec95e36d717c809.tar.gz
Enable hacking rule F821
F821: undefined name Currently, we define global variables at runtime in keystoneclient/tests/test_shell.py, which cannot detected by hacking rule check, then it fails for rule F821. This patch changes the global lambda shell to a helper function. Change-Id: Iaf5c4e40a6b17fbf4ba0c254b75d347f08b52364
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini3
1 files changed, 1 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index b3e1d5d..49586a5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -31,12 +31,11 @@ downloadcache = ~/cache/pip
commands = oslo_debug_helper -t keystoneclient/tests {posargs}
[flake8]
-# F821: undefined name
# H304: no relative imports
# H405: multi line docstring summary not separated with an empty line
# E122: continuation line missing indentation or outdented
# New from hacking 0.10: H238
-ignore = F821,H238,H304,H405,E122
+ignore = H238,H304,H405,E122
show-source = True
exclude = .venv,.tox,dist,doc,*egg,build,*openstack/common*