pep8: Add 'application-import-names = ironic_inspector'
Add 'application-import-names = ironic_inspector' to tox.ini. Update files which failed pep8. Change-Id: Ib908b75ac2bf262773978be62e11f973f9eba0d2
This commit is contained in:
parent
2e25c5ed76
commit
19c1b8e5ca
@ -14,6 +14,12 @@ import json
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
from ironic_tempest_plugin.tests.api.admin.api_microversion_fixture import \
|
||||||
|
APIMicroversionFixture as IronicMicroversionFixture
|
||||||
|
from ironic_tempest_plugin.tests.scenario.baremetal_manager import \
|
||||||
|
BaremetalProvisionStates
|
||||||
|
from ironic_tempest_plugin.tests.scenario.baremetal_manager import \
|
||||||
|
BaremetalScenarioTest
|
||||||
import six
|
import six
|
||||||
import tempest
|
import tempest
|
||||||
from tempest import config
|
from tempest import config
|
||||||
@ -24,13 +30,6 @@ from tempest.lib import exceptions as lib_exc
|
|||||||
from ironic_inspector.test.inspector_tempest_plugin import exceptions
|
from ironic_inspector.test.inspector_tempest_plugin import exceptions
|
||||||
from ironic_inspector.test.inspector_tempest_plugin.services import \
|
from ironic_inspector.test.inspector_tempest_plugin.services import \
|
||||||
introspection_client
|
introspection_client
|
||||||
from ironic_tempest_plugin.tests.api.admin.api_microversion_fixture import \
|
|
||||||
APIMicroversionFixture as IronicMicroversionFixture
|
|
||||||
from ironic_tempest_plugin.tests.scenario.baremetal_manager import \
|
|
||||||
BaremetalProvisionStates
|
|
||||||
from ironic_tempest_plugin.tests.scenario.baremetal_manager import \
|
|
||||||
BaremetalScenarioTest
|
|
||||||
|
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from ironic_tempest_plugin.tests.scenario import baremetal_manager
|
||||||
from tempest.config import CONF
|
from tempest.config import CONF
|
||||||
from tempest.lib import decorators
|
from tempest.lib import decorators
|
||||||
from tempest import test # noqa
|
from tempest import test # noqa
|
||||||
|
|
||||||
from ironic_inspector.test.inspector_tempest_plugin.tests import manager
|
from ironic_inspector.test.inspector_tempest_plugin.tests import manager
|
||||||
from ironic_tempest_plugin.tests.scenario import baremetal_manager
|
|
||||||
|
|
||||||
|
|
||||||
class InspectorBasicTest(manager.InspectorScenarioTest):
|
class InspectorBasicTest(manager.InspectorScenarioTest):
|
||||||
|
@ -16,6 +16,7 @@ import json
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
from oslo_config import cfg
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from ironic_inspector.common import ironic as ir_utils
|
from ironic_inspector.common import ironic as ir_utils
|
||||||
@ -30,7 +31,6 @@ from ironic_inspector import process
|
|||||||
from ironic_inspector import rules
|
from ironic_inspector import rules
|
||||||
from ironic_inspector.test import base as test_base
|
from ironic_inspector.test import base as test_base
|
||||||
from ironic_inspector import utils
|
from ironic_inspector import utils
|
||||||
from oslo_config import cfg
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
from ironicclient.v1 import node
|
||||||
from keystonemiddleware import auth_token
|
from keystonemiddleware import auth_token
|
||||||
import mock
|
import mock
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
@ -18,7 +19,6 @@ from oslo_config import cfg
|
|||||||
from ironic_inspector import node_cache
|
from ironic_inspector import node_cache
|
||||||
from ironic_inspector.test import base
|
from ironic_inspector.test import base
|
||||||
from ironic_inspector import utils
|
from ironic_inspector import utils
|
||||||
from ironicclient.v1 import node
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
|
3
tox.ini
3
tox.ini
@ -59,11 +59,12 @@ commands = {toxinidir}/tools/states_to_dot.py -f {toxinidir}/doc/source/images/s
|
|||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-complexity=15
|
max-complexity=15
|
||||||
# [H106] Don’t put vim configuration in source files.
|
# [H106] Don't put vim configuration in source files.
|
||||||
# [H203] Use assertIs(Not)None to check for None.
|
# [H203] Use assertIs(Not)None to check for None.
|
||||||
# [H904] Delay string interpolations at logging calls.
|
# [H904] Delay string interpolations at logging calls.
|
||||||
enable-extensions=H106,H203,H904
|
enable-extensions=H106,H203,H904
|
||||||
import-order-style = pep8
|
import-order-style = pep8
|
||||||
|
application-import-names = ironic_inspector
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions = ironicclient.exceptions,ironic_inspector.common.i18n
|
import_exceptions = ironicclient.exceptions,ironic_inspector.common.i18n
|
||||||
|
Loading…
Reference in New Issue
Block a user