Enable checking for imports in alphabetical order

And fix existing alphabetical ordering problems

Change-Id: I3ab887e118adc8022c84ff7230e7cc2d261804f6
This commit is contained in:
Joe Gordon 2012-05-22 10:44:00 -07:00
parent e6b42d7bdf
commit f8437e37d4
7 changed files with 11 additions and 11 deletions

View File

@ -23,8 +23,8 @@ networking and storage of vms, and compute hosts on which they run)."""
import functools
import re
import time
import string
import time
from nova import block_device
from nova.compute import aggregate_states
@ -32,8 +32,8 @@ from nova.compute import instance_types
from nova.compute import power_state
from nova.compute import task_states
from nova.compute import vm_states
from nova import crypto
from nova.consoleauth import rpcapi as consoleauth_rpcapi
from nova import crypto
from nova.db import base
from nova import exception
from nova import flags

View File

@ -226,8 +226,8 @@ log files:
import collections
import copy
import glob
import functools
import glob
import optparse
import os
import string

View File

@ -19,8 +19,8 @@ Unit Tests for rpc.dispatcher
"""
from nova import context
from nova.rpc import dispatcher
from nova.rpc import common as rpc_common
from nova.rpc import dispatcher
from nova import test

View File

@ -17,15 +17,15 @@
"""Tests For miscellaneous util methods used with volume."""
from nova import context
from nova import db
from nova import flags
from nova import context
from nova import test
from nova import log as logging
import nova.image.fake
from nova.volume import utils as volume_utils
from nova import log as logging
from nova.notifier import test_notifier
from nova.openstack.common import importutils
from nova import test
from nova.volume import utils as volume_utils
LOG = logging.getLogger(__name__)

View File

@ -48,8 +48,8 @@ from nova.openstack.common import excutils
from nova.openstack.common import importutils
from nova import rpc
from nova import utils
from nova.volume import volume_types
from nova.volume import utils as volume_utils
from nova.volume import volume_types
LOG = logging.getLogger(__name__)

View File

@ -18,8 +18,8 @@
from nova import flags
from nova import log as logging
from nova import utils
from nova.notifier import api as notifier_api
from nova import utils
FLAGS = flags.FLAGS

View File

@ -110,7 +110,7 @@ function run_pep8 {
#
# Until all these issues get fixed, ignore.
ignore='--ignore=N4,N306'
ignore='--ignore=N4'
${wrapper} python tools/hacking.py ${ignore} ${srcfiles}
}