Add some imports to hacking import_exceptions

To avoid H302 check, add most common imports to import_exceptions.
from heat.common.i18n import _
from heat.common.i18n import _LE
from heat.common.i18n import _LI
from heat.common.i18n import _LW

Change-Id: I4e4d1462d4c351e08a09d935a5a177c1d8954e06
This commit is contained in:
Zhenguo Niu 2014-10-21 16:11:34 +08:00
parent 53834a0195
commit 092d400098

View File

@ -55,3 +55,6 @@ exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,tools,build
# 28 is currently the most complex thing we have
# TODO(asalkeld): get this number down to 20
max-complexity=29
[hacking]
import_exceptions = heat.common.i18n