Merge "Activate pep8 check that _ is imported"
This commit is contained in:
commit
49a0dd770b
@ -37,6 +37,7 @@ from six.moves import range
|
|||||||
from six.moves import urllib
|
from six.moves import urllib
|
||||||
|
|
||||||
from glance_store import exceptions
|
from glance_store import exceptions
|
||||||
|
from glance_store.i18n import _
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
@ -27,6 +27,7 @@ from paste import deploy
|
|||||||
|
|
||||||
from glance.version import version_info as version
|
from glance.version import version_info as version
|
||||||
from glance_store.common import utils
|
from glance_store.common import utils
|
||||||
|
from glance_store.i18n import _
|
||||||
|
|
||||||
paste_deploy_opts = [
|
paste_deploy_opts = [
|
||||||
cfg.StrOpt('flavor',
|
cfg.StrOpt('flavor',
|
||||||
|
@ -28,6 +28,8 @@ except ImportError:
|
|||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
from glance_store.i18n import _
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
1
tox.ini
1
tox.ini
@ -32,5 +32,4 @@ commands = {posargs}
|
|||||||
# H404 multi line docstring should start with a summary
|
# H404 multi line docstring should start with a summary
|
||||||
# H405 multi line docstring summary not separated with an empty line
|
# H405 multi line docstring summary not separated with an empty line
|
||||||
ignore = H301,H404,H405
|
ignore = H301,H404,H405
|
||||||
builtins = _
|
|
||||||
exclude = .venv,.git,.tox,dist,doc,etc,*glance_store/locale*,*openstack/common*,*lib/python*,*egg,build
|
exclude = .venv,.git,.tox,dist,doc,etc,*glance_store/locale*,*openstack/common*,*lib/python*,*egg,build
|
||||||
|
Loading…
Reference in New Issue
Block a user