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:
parent
efc4354522
commit
19dbcbbb89
@ -28,7 +28,7 @@ import weakref
|
|||||||
|
|
||||||
from oslo.config import cfg
|
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
|
from oslo.concurrency.openstack.common import fileutils
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ from eventlet import greenthread
|
|||||||
from oslo.utils import strutils
|
from oslo.utils import strutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from oslo.concurrency._i18n import _ # noqa
|
from oslo.concurrency._i18n import _
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
4
tox.ini
4
tox.ini
@ -49,3 +49,7 @@ show-source = True
|
|||||||
ignore = H305,H307,H405,E126
|
ignore = H305,H307,H405,E126
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|
||||||
|
|
||||||
|
[hacking]
|
||||||
|
import_exceptions =
|
||||||
|
oslo.concurrency._i18n
|
||||||
|
Loading…
Reference in New Issue
Block a user