Update version of flake8-import-order package

Use latest version of flake8-import-order package, like we do in
openstack/ironic

Fix the issues detected by new version.

Change-Id: I3b016e35f98c8f88500824e612838f9923b4c3b9
This commit is contained in:
John L. Villalovos 2017-12-14 11:38:27 -08:00
parent b81c142824
commit 2064742523
11 changed files with 13 additions and 22 deletions

View File

@ -19,10 +19,9 @@ import sys
from alembic import command as alembic_command from alembic import command as alembic_command
from alembic import config as alembic_config from alembic import config as alembic_config
from alembic import util as alembic_util from alembic import util as alembic_util
import six
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log from oslo_log import log
import six
from ironic_inspector import conf # noqa from ironic_inspector import conf # noqa

View File

@ -25,11 +25,10 @@ branch_labels = None
depends_on = None depends_on = None
from alembic import op from alembic import op
from oslo_utils import uuidutils
import sqlalchemy as sa import sqlalchemy as sa
from sqlalchemy.engine.reflection import Inspector as insp from sqlalchemy.engine.reflection import Inspector as insp
from oslo_utils import uuidutils
ATTRIBUTES = 'attributes' ATTRIBUTES = 'attributes'
NODES = 'nodes' NODES = 'nodes'
NAME = 'name' NAME = 'name'

View File

@ -25,9 +25,8 @@ branch_labels = None
depends_on = None depends_on = None
from alembic import op from alembic import op
import sqlalchemy as sa
from oslo_db.sqlalchemy import types from oslo_db.sqlalchemy import types
import sqlalchemy as sa
def upgrade(): def upgrade():

View File

@ -11,10 +11,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import eventlet # noqa import eventlet
eventlet.monkey_patch() eventlet.monkey_patch()
import contextlib import contextlib # noqa
import copy import copy
import datetime import datetime
import json import json

View File

@ -10,9 +10,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import six
from ironic_tempest_plugin.tests.scenario import baremetal_manager from ironic_tempest_plugin.tests.scenario import baremetal_manager
import six
from tempest import config from tempest import config
from tempest.lib import decorators from tempest.lib import decorators
from tempest import test # noqa from tempest import test # noqa

View File

@ -11,9 +11,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import mock
from keystoneauth1 import loading as kaloading from keystoneauth1 import loading as kaloading
import mock
from oslo_config import cfg from oslo_config import cfg
from ironic_inspector.common import keystone from ironic_inspector.common import keystone

View File

@ -12,7 +12,6 @@
# limitations under the License. # limitations under the License.
import mock import mock
from oslo_config import cfg from oslo_config import cfg
from ironic_inspector import node_cache from ironic_inspector import node_cache

View File

@ -12,7 +12,6 @@
# limitations under the License. # limitations under the License.
import mock import mock
from oslo_config import cfg from oslo_config import cfg
from ironic_inspector import node_cache from ironic_inspector import node_cache

View File

@ -12,10 +12,9 @@
# limitations under the License. # limitations under the License.
import mock import mock
import six
from oslo_config import cfg from oslo_config import cfg
from oslo_utils import units from oslo_utils import units
import six
from ironic_inspector import node_cache from ironic_inspector import node_cache
from ironic_inspector.plugins import base from ironic_inspector.plugins import base

View File

@ -11,15 +11,14 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import fixtures
import mock
import six
import stevedore
from automaton import exceptions as automaton_errors from automaton import exceptions as automaton_errors
from eventlet import semaphore from eventlet import semaphore
import fixtures
from futurist import periodics from futurist import periodics
import mock
from oslo_config import cfg from oslo_config import cfg
import six
import stevedore
from ironic_inspector.common import ironic as ir_utils from ironic_inspector.common import ironic as ir_utils
from ironic_inspector.pxe_filter import base as pxe_filter from ironic_inspector.pxe_filter import base as pxe_filter

View File

@ -3,7 +3,7 @@
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
coverage!=4.4,>=4.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0
doc8>=0.6.0 # Apache-2.0 doc8>=0.6.0 # Apache-2.0
flake8-import-order==0.11 # LGPLv3 flake8-import-order>=0.13 # LGPLv3
hacking>=1.0.0 # Apache-2.0 hacking>=1.0.0 # Apache-2.0
mock>=2.0.0 # BSD mock>=2.0.0 # BSD
sphinx>=1.6.2 # BSD sphinx>=1.6.2 # BSD