Introduce flake8-import-order

This commit introduces flake8-import-order to check import orders
automatically. We shouldn't do it manually.

Depends-On: Ia2140f5566ce169b076ffa5c9ebfbdbfc41e5bed
Change-Id: Iff75ebec42b295870edd1c04001adfb17460a682
This commit is contained in:
Masayuki Igawa 2017-02-10 18:05:26 +09:00
parent 2d5bdd04a2
commit 134d9f748b
No known key found for this signature in database
GPG Key ID: 251CCDE9053850E4
17 changed files with 28 additions and 15 deletions

View File

@ -13,9 +13,10 @@
# License for the specific language governing permissions and limitations
# under the License.
import netaddr
import random
import netaddr
from tempest.api.network import base
from tempest.common.utils import data_utils
from tempest.common.utils import net_info

View File

@ -15,6 +15,7 @@
# under the License.
import random
from six.moves.urllib import parse
from tempest.api.volume import base

View File

@ -11,6 +11,7 @@
# under the License.
import copy
from oslo_log import log as logging
from tempest import exceptions

View File

@ -10,12 +10,13 @@
# License for the specific language governing permissions and limitations
# under the License.
import netaddr
import re
import six
import sys
import time
import netaddr
import six
from oslo_log import log as logging
from tempest import config

View File

@ -14,12 +14,12 @@
# under the License.
import itertools
import netaddr
import random
import string
import uuid
from debtcollector import removals
import netaddr
from oslo_utils import netutils
from oslo_utils import uuidutils
import six.moves

View File

@ -14,14 +14,15 @@
import hashlib
import os
import testtools
import shutil
import mock
import six
import testtools
from oslo_concurrency.fixture import lockutils as lockutils_fixtures
from oslo_config import cfg
from oslotest import mockpatch
import shutil
import six
from tempest.common import preprov_creds
from tempest import config

View File

@ -12,9 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.
import fixtures
import time
import fixtures
from oslo_config import cfg
from oslotest import mockpatch

View File

@ -11,9 +11,10 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
import subprocess
import mock
from tempest.lib.cli import base as cli_base
from tempest.lib import exceptions
from tempest.tests import base

View File

@ -13,6 +13,7 @@
# under the License.
import copy
from oslotest import mockpatch
from tempest.lib.services.compute import versions_client

View File

@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations under
# the License.
import types
import fixtures
import mock
import testtools
import types
from tempest.lib import auth
from tempest.lib import exceptions

View File

@ -15,9 +15,9 @@
import copy
import datetime
import testtools
from oslotest import mockpatch
import testtools
from tempest.lib import auth
from tempest.lib import exceptions

View File

@ -14,9 +14,10 @@
import os
import re
import six
import subprocess
import six
from tempest.tests import base

View File

@ -9,3 +9,4 @@ reno>=1.8.0 # Apache-2.0
mock>=2.0 # BSD
coverage>=4.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
flake8-import-order==0.11 # LGPLv3

View File

@ -19,10 +19,10 @@ import argparse
import gzip
import os
import re
import six
import six.moves.urllib.request as urlreq
import sys
import six
import six.moves.urllib.request as urlreq
import yaml

View File

@ -18,9 +18,10 @@
import gzip
import pprint
import re
import sys
import six
import six.moves.urllib.request as urlreq
import sys
pp = pprint.PrettyPrinter()

View File

@ -25,6 +25,7 @@
import json
import re
import requests
url = 'https://review.openstack.org/projects/'

View File

@ -147,6 +147,7 @@ ignore = E125,E123,E129
show-source = True
exclude = .git,.venv,.tox,dist,doc,*egg
enable-extensions = H106,H203,H904
import-order-style = pep8
[testenv:releasenotes]
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html