diff --git a/oslo/concurrency/lockutils.py b/oslo/concurrency/lockutils.py index ba98347..1b6cc1a 100644 --- a/oslo/concurrency/lockutils.py +++ b/oslo/concurrency/lockutils.py @@ -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 diff --git a/oslo/concurrency/processutils.py b/oslo/concurrency/processutils.py index 1c4d052..95c94bb 100644 --- a/oslo/concurrency/processutils.py +++ b/oslo/concurrency/processutils.py @@ -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__) diff --git a/tox.ini b/tox.ini index 56138b3..cc5db6a 100644 --- a/tox.ini +++ b/tox.ini @@ -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