Fix and enable gating on H306

H306 - module imports should be in alphabetical order

Change-Id: I1f8fc25b0e6ca23c21c90bda420f42a45141c2e2
This commit is contained in:
Dirk Mueller
2013-12-16 15:28:05 +01:00
parent c1563a75e4
commit 9f255a9b49
11 changed files with 12 additions and 14 deletions

View File

@@ -37,8 +37,8 @@ if not hasattr(urlparse, 'parse_qsl'):
import OpenSSL
from glanceclient import exc
from glanceclient.common import utils
from glanceclient import exc
from glanceclient.openstack.common import strutils
try:

View File

@@ -31,8 +31,8 @@ from keystoneclient.v2_0 import client as ksclient
import netaddr
import glanceclient
from glanceclient import exc
from glanceclient.common import utils
from glanceclient import exc
from glanceclient.openstack.common import strutils

View File

@@ -14,8 +14,8 @@
# under the License.
from glanceclient.common import http
from glanceclient.v1 import images
from glanceclient.v1 import image_members
from glanceclient.v1 import images
class Client(http.HTTPClient):

View File

@@ -19,9 +19,9 @@ import argparse
import copy
import sys
from glanceclient import exc
from glanceclient.common import utils
from glanceclient.common import progressbar
from glanceclient.common import utils
from glanceclient import exc
from glanceclient.openstack.common import strutils
import glanceclient.v1.images

View File

@@ -16,9 +16,9 @@
import warlock
from glanceclient.common import http
from glanceclient.v2 import images
from glanceclient.v2 import image_members
from glanceclient.v2 import image_tags
from glanceclient.v2 import images
from glanceclient.v2 import schemas

View File

@@ -21,9 +21,9 @@ import urlparse
import mox
import testtools
from glanceclient import exc
import glanceclient
from glanceclient.common import http
from glanceclient import exc
from six.moves import http_client
from tests import utils

View File

@@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import sys
import StringIO
import sys
import testtools

View File

@@ -18,8 +18,8 @@ import os
from OpenSSL import crypto
import testtools
from glanceclient import exc
from glanceclient.common import http
from glanceclient import exc
TEST_VAR_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__),

View File

@@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import sys
import StringIO
import sys
import testtools

View File

@@ -15,8 +15,8 @@
import testtools
import glanceclient.v1.images
import glanceclient.v1.image_members
import glanceclient.v1.images
from tests import utils

View File

@@ -29,9 +29,7 @@ downloadcache = ~/cache/pip
# H233 Python 3.x incompatible use of print operator
# H302 import only modules
# H303 no wildcard import
# H306 imports not in alphabetical orde
# H404 multi line docstring should start with a summary
# H501 Do not use locals() for string formatting
ignore = F403,F841,F812,F821,H233,H302,H303,H306,H404,H501
ignore = F403,F841,F812,F821,H233,H302,H303,H404
show-source = True
exclude = .venv,.tox,dist,doc,*egg,build