Merge "Check import order"
This commit is contained in:
@@ -19,9 +19,10 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ironicclient.common import http
|
|
||||||
from osc_lib import utils
|
from osc_lib import utils
|
||||||
|
|
||||||
|
from ironicclient.common import http
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
CLIENT_CLASS = 'ironicclient.v1.client.Client'
|
CLIENT_CLASS = 'ironicclient.v1.client.Client'
|
||||||
|
@@ -12,8 +12,9 @@
|
|||||||
# 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 ddt
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
import ddt
|
||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
|
|
||||||
from ironicclient.tests.functional.osc.v1 import base
|
from ironicclient.tests.functional.osc.v1 import base
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import ddt
|
import ddt
|
||||||
|
|
||||||
from tempest.lib.common.utils import data_utils
|
from tempest.lib.common.utils import data_utils
|
||||||
|
|
||||||
from ironicclient.tests.functional.osc.v1 import base
|
from ironicclient.tests.functional.osc.v1 import base
|
||||||
|
@@ -16,11 +16,10 @@
|
|||||||
from http import client as http_client
|
from http import client as http_client
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from keystoneauth1 import exceptions as kexc
|
||||||
import mock
|
import mock
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
|
||||||
from keystoneauth1 import exceptions as kexc
|
|
||||||
|
|
||||||
from ironicclient.common import filecache
|
from ironicclient.common import filecache
|
||||||
from ironicclient.common import http
|
from ironicclient.common import http
|
||||||
from ironicclient import exc
|
from ironicclient import exc
|
||||||
|
@@ -15,8 +15,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import mock
|
|
||||||
|
|
||||||
|
import mock
|
||||||
from osc_lib.tests import utils as oscutils
|
from osc_lib.tests import utils as oscutils
|
||||||
|
|
||||||
from ironicclient import exc
|
from ironicclient import exc
|
||||||
|
@@ -12,7 +12,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
from osc_lib.tests import utils as oscutils
|
from osc_lib.tests import utils as oscutils
|
||||||
|
|
||||||
from ironicclient.osc.v1 import baremetal_create
|
from ironicclient.osc.v1 import baremetal_create
|
||||||
|
@@ -15,8 +15,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import mock
|
|
||||||
|
|
||||||
|
import mock
|
||||||
from osc_lib.tests import utils as oscutils
|
from osc_lib.tests import utils as oscutils
|
||||||
|
|
||||||
from ironicclient.common import utils as commonutils
|
from ironicclient.common import utils as commonutils
|
||||||
|
@@ -11,7 +11,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
from openstack import config
|
from openstack import config
|
||||||
|
|
||||||
from ironicclient import client as iroclient
|
from ironicclient import client as iroclient
|
||||||
|
@@ -11,6 +11,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import builtins
|
import builtins
|
||||||
|
|
||||||
import jsonschema
|
import jsonschema
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@ extras==1.0.0
|
|||||||
fasteners==0.7.0
|
fasteners==0.7.0
|
||||||
fixtures==3.0.0
|
fixtures==3.0.0
|
||||||
flake8==2.5.5
|
flake8==2.5.5
|
||||||
|
flake8-import-order==0.17.1
|
||||||
future==0.16.0
|
future==0.16.0
|
||||||
hacking==3.0.0
|
hacking==3.0.0
|
||||||
idna==2.6
|
idna==2.6
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
hacking>=3.0.0,<3.1.0 # Apache-2.0
|
hacking>=3.0.0,<3.1.0 # Apache-2.0
|
||||||
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.17.1 # LGPLv3
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
requests-mock>=1.2.0 # Apache-2.0
|
requests-mock>=1.2.0 # Apache-2.0
|
||||||
mock>=2.0.0 # BSD
|
mock>=2.0.0 # BSD
|
||||||
|
3
tox.ini
3
tox.ini
@@ -81,6 +81,9 @@ exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools
|
|||||||
# [H210] Require 'autospec', 'spec', or 'spec_set' in mock.patch/mock.patch.object calls
|
# [H210] Require 'autospec', 'spec', or 'spec_set' in mock.patch/mock.patch.object calls
|
||||||
# [H904] Delay string interpolations at logging calls.
|
# [H904] Delay string interpolations at logging calls.
|
||||||
enable-extensions=H106,H203,H204,H205,H210,H904
|
enable-extensions=H106,H203,H204,H205,H210,H904
|
||||||
|
filename = *.py
|
||||||
|
import-order-style = pep8
|
||||||
|
application-import-names = ironicclient
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions = testtools.matchers, ironicclient.common.i18n
|
import_exceptions = testtools.matchers, ironicclient.common.i18n
|
||||||
|
Reference in New Issue
Block a user