Activate pep8 check that _ is imported

Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.
This helps ensure that the _ from i18n is used.

Change-Id: Ib701f92ff9d98dfcc655184caebce27ac4ab7bab
This commit is contained in:
Gal Sagie 2015-09-17 08:09:34 +03:00
parent b3dd4db50e
commit e4e29c446f

View File

@ -42,7 +42,7 @@ commands = python setup.py build_sphinx
# H904 Wrap long lines in parentheses instead of a backslash # H904 Wrap long lines in parentheses instead of a backslash
ignore = E125,E126,E128,E129,E265,H301,H305,H307,H402,H404,H405,H904 ignore = E125,E126,E128,E129,E265,H301,H305,H307,H402,H404,H405,H904
show-source = true show-source = true
builtins = _
# TODO(dougw) neutron/tests/unit/vmware exclusion is a temporary services split hack # TODO(dougw) neutron/tests/unit/vmware exclusion is a temporary services split hack
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,neutron/tests/unit/vmware* exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,neutron/tests/unit/vmware*