Enabled hacking checks H305 and H307

* H305  imports not grouped correctly
* H307  like imports should be grouped together

Change-Id: I08dafc4fa150d2213b2bb002da7c9ee0ee517fac
This commit is contained in:
Christian Berendt
2014-07-17 12:40:53 +02:00
parent 1cc3e5d866
commit 5be1b6a6a9
24 changed files with 19 additions and 22 deletions

View File

@@ -22,7 +22,6 @@ import logging
import sys import sys
from oslo.config import cfg from oslo.config import cfg
from oslo.messaging._drivers import impl_zmq from oslo.messaging._drivers import impl_zmq
from oslo.messaging._executors import impl_eventlet # FIXME(markmc) from oslo.messaging._executors import impl_eventlet # FIXME(markmc)

View File

@@ -28,9 +28,9 @@ import logging
import threading import threading
import uuid import uuid
from oslo.config import cfg
import six import six
from oslo.config import cfg
from oslo.messaging._drivers import common as rpc_common from oslo.messaging._drivers import common as rpc_common
from oslo.messaging._drivers import pool from oslo.messaging._drivers import pool

View File

@@ -20,9 +20,9 @@ import logging
import sys import sys
import traceback import traceback
from oslo import messaging
import six import six
from oslo import messaging
from oslo.messaging import _utils as utils from oslo.messaging import _utils as utils
from oslo.messaging.openstack.common import importutils from oslo.messaging.openstack.common import importutils
from oslo.messaging.openstack.common import jsonutils from oslo.messaging.openstack.common import jsonutils

View File

@@ -19,9 +19,9 @@ import logging
import random import random
import time import time
from oslo.config import cfg
import six import six
from oslo.config import cfg
from oslo.messaging._drivers import amqp as rpc_amqp from oslo.messaging._drivers import amqp as rpc_amqp
from oslo.messaging._drivers import amqpdriver from oslo.messaging._drivers import amqpdriver
from oslo.messaging._drivers import common as rpc_common from oslo.messaging._drivers import common as rpc_common

View File

@@ -25,9 +25,9 @@ import kombu
import kombu.connection import kombu.connection
import kombu.entity import kombu.entity
import kombu.messaging import kombu.messaging
from oslo.config import cfg
import six import six
from oslo.config import cfg
from oslo.messaging._drivers import amqp as rpc_amqp from oslo.messaging._drivers import amqp as rpc_amqp
from oslo.messaging._drivers import amqpdriver from oslo.messaging._drivers import amqpdriver
from oslo.messaging._drivers import common as rpc_common from oslo.messaging._drivers import common as rpc_common

View File

@@ -25,10 +25,10 @@ import uuid
import eventlet import eventlet
import greenlet import greenlet
from oslo.config import cfg
import six import six
from six import moves from six import moves
from oslo.config import cfg
from oslo.messaging._drivers import base from oslo.messaging._drivers import base
from oslo.messaging._drivers import common as rpc_common from oslo.messaging._drivers import common as rpc_common
from oslo.messaging._executors import impl_eventlet # FIXME(markmc) from oslo.messaging._executors import impl_eventlet # FIXME(markmc)

View File

@@ -20,6 +20,7 @@ import contextlib
import logging import logging
import eventlet import eventlet
from oslo.config import cfg from oslo.config import cfg
# FIXME(markmc): remove this # FIXME(markmc): remove this

View File

@@ -17,7 +17,6 @@ return keys for direct exchanges, per (approximate) AMQP parlance.
""" """
from oslo.config import cfg from oslo.config import cfg
from oslo.messaging._drivers import matchmaker as mm_common from oslo.messaging._drivers import matchmaker as mm_common
from oslo.messaging.openstack.common import importutils from oslo.messaging.openstack.common import importutils

View File

@@ -21,7 +21,6 @@ import json
import logging import logging
from oslo.config import cfg from oslo.config import cfg
from oslo.messaging._drivers import matchmaker as mm from oslo.messaging._drivers import matchmaker as mm
# FIXME(markmc): remove this # FIXME(markmc): remove this

View File

@@ -20,7 +20,6 @@ from eventlet import greenpool
import greenlet import greenlet
from oslo.config import cfg from oslo.config import cfg
from oslo.messaging._executors import base from oslo.messaging._executors import base
from oslo.messaging.openstack.common import excutils from oslo.messaging.openstack.common import excutils

View File

@@ -16,11 +16,11 @@
import fnmatch import fnmatch
import logging import logging
from oslo.config import cfg
import six import six
from stevedore import dispatch from stevedore import dispatch
import yaml import yaml
from oslo.config import cfg
from oslo.messaging.notify import notifier from oslo.messaging.notify import notifier
from oslo.messaging.openstack.common.gettextutils import _ # noqa from oslo.messaging.openstack.common.gettextutils import _ # noqa

View File

@@ -17,7 +17,6 @@ Driver for the Python logging package that sends log records as a notification.
import logging import logging
from oslo.config import cfg from oslo.config import cfg
from oslo.messaging.notify import notifier from oslo.messaging.notify import notifier
from oslo.messaging import transport from oslo.messaging import transport

View File

@@ -19,10 +19,10 @@ import abc
import logging import logging
import uuid import uuid
from oslo.config import cfg
import six import six
from stevedore import named from stevedore import named
from oslo.config import cfg
from oslo.messaging.openstack.common import timeutils from oslo.messaging.openstack.common import timeutils
from oslo.messaging import serializer as msg_serializer from oslo.messaging import serializer as msg_serializer

View File

@@ -23,9 +23,9 @@ __all__ = [
'RemoteError', 'RemoteError',
] ]
from oslo.config import cfg
import six import six
from oslo.config import cfg
from oslo.messaging._drivers import base as driver_base from oslo.messaging._drivers import base as driver_base
from oslo.messaging import _utils as utils from oslo.messaging import _utils as utils
from oslo.messaging import exceptions from oslo.messaging import exceptions

View File

@@ -27,11 +27,11 @@ __all__ = [
'set_transport_defaults', 'set_transport_defaults',
] ]
from oslo.config import cfg
import six import six
from six.moves.urllib import parse from six.moves.urllib import parse
from stevedore import driver from stevedore import driver
from oslo.config import cfg
from oslo.messaging import exceptions from oslo.messaging import exceptions

View File

@@ -15,9 +15,9 @@
# under the License. # under the License.
import contextlib import contextlib
import eventlet
import threading import threading
import eventlet
import mock import mock
import testscenarios import testscenarios

View File

@@ -16,9 +16,9 @@
import threading import threading
import mock import mock
from oslo.config import cfg
import testscenarios import testscenarios
from oslo.config import cfg
from oslo import messaging from oslo import messaging
from oslo.messaging.notify import dispatcher from oslo.messaging.notify import dispatcher
from tests import utils as test_utils from tests import utils as test_utils

View File

@@ -11,6 +11,7 @@
# under the License. # under the License.
import logging import logging
import mock import mock
from oslo import messaging from oslo import messaging

View File

@@ -13,9 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo.config import cfg
import testscenarios import testscenarios
from oslo.config import cfg
from oslo import messaging from oslo import messaging
from oslo.messaging import serializer as msg_serializer from oslo.messaging import serializer as msg_serializer
from tests import utils as test_utils from tests import utils as test_utils

View File

@@ -15,9 +15,9 @@
import threading import threading
from oslo.config import cfg
import testscenarios import testscenarios
from oslo.config import cfg
from oslo import messaging from oslo import messaging
from tests import utils as test_utils from tests import utils as test_utils

View File

@@ -15,7 +15,6 @@
# under the License. # under the License.
from oslo import messaging from oslo import messaging
from tests import utils as test_utils from tests import utils as test_utils

View File

@@ -15,11 +15,11 @@
import fixtures import fixtures
from mox3 import mox from mox3 import mox
from oslo.config import cfg
import six import six
from stevedore import driver from stevedore import driver
import testscenarios import testscenarios
from oslo.config import cfg
from oslo import messaging from oslo import messaging
from oslo.messaging import transport from oslo.messaging import transport
from tests import utils as test_utils from tests import utils as test_utils

View File

@@ -19,9 +19,10 @@
"""Common utilities used in testing""" """Common utilities used in testing"""
from oslo.config import cfg
import six import six
from oslo.config import cfg
from oslotest import base from oslotest import base
from oslotest import moxstubout from oslotest import moxstubout

View File

@@ -25,7 +25,7 @@ commands = python setup.py build_sphinx
[flake8] [flake8]
show-source = True show-source = True
ignore = E226,E241,E265,E714,H237,H305,H307,H402,H405,H904 ignore = E226,E241,E265,E714,H237,H402,H405,H904
exclude = .tox,dist,doc,*.egg,build,__init__.py exclude = .tox,dist,doc,*.egg,build,__init__.py
builtins = _ builtins = _