From 092d400098c6c0c901101e44cfbe8ec640e3333f Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Tue, 21 Oct 2014 16:11:34 +0800 Subject: [PATCH] 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 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index f1621024ba..873adfac53 100644 --- a/tox.ini +++ b/tox.ini @@ -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