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:
parent
2d5bdd04a2
commit
134d9f748b
@ -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
|
||||
|
@ -15,6 +15,7 @@
|
||||
# under the License.
|
||||
|
||||
import random
|
||||
|
||||
from six.moves.urllib import parse
|
||||
|
||||
from tempest.api.volume import base
|
||||
|
@ -11,6 +11,7 @@
|
||||
# under the License.
|
||||
|
||||
import copy
|
||||
|
||||
from oslo_log import log as logging
|
||||
|
||||
from tempest import exceptions
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -13,6 +13,7 @@
|
||||
# under the License.
|
||||
|
||||
import copy
|
||||
|
||||
from oslotest import mockpatch
|
||||
|
||||
from tempest.lib.services.compute import versions_client
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -14,9 +14,10 @@
|
||||
|
||||
import os
|
||||
import re
|
||||
import six
|
||||
import subprocess
|
||||
|
||||
import six
|
||||
|
||||
from tempest.tests import base
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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()
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
import json
|
||||
import re
|
||||
|
||||
import requests
|
||||
|
||||
url = 'https://review.openstack.org/projects/'
|
||||
|
1
tox.ini
1
tox.ini
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user