Add hacking import exception for i18n

This is preferred over adding noqa's everywhere we import a
translation function.

Change-Id: I171df45b62beb9776e8dbb52e33a408a832bf86f
This commit is contained in:
Ben Nemec 2014-09-26 15:31:09 +00:00
parent efc4354522
commit 19dbcbbb89
3 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import weakref
from oslo.config import cfg
from oslo.concurrency._i18n import _, _LE, _LI # noqa
from oslo.concurrency._i18n import _, _LE, _LI
from oslo.concurrency.openstack.common import fileutils

View File

@ -30,7 +30,7 @@ from eventlet import greenthread
from oslo.utils import strutils
import six
from oslo.concurrency._i18n import _ # noqa
from oslo.concurrency._i18n import _
LOG = logging.getLogger(__name__)

View File

@ -49,3 +49,7 @@ show-source = True
ignore = H305,H307,H405,E126
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
[hacking]
import_exceptions =
oslo.concurrency._i18n