flake8: Specify 'ironic_python_agent' as name of app
Specify 'ironic_python_agent' as the name of the application for the flake8-import-order plugin. That way it knows that imports of ironic_python_agent should come after external libraries. Change-Id: Id39d558a51aeb97d96633afea28676634547d0d7
This commit is contained in:
parent
24b4e3f1c0
commit
e9344077fc
@ -16,13 +16,13 @@ import hashlib
|
||||
import os
|
||||
import time
|
||||
|
||||
from ironic_lib import disk_utils
|
||||
from oslo_concurrency import processutils
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
import requests
|
||||
import six
|
||||
|
||||
from ironic_lib import disk_utils
|
||||
from ironic_python_agent import errors
|
||||
from ironic_python_agent.extensions import base
|
||||
from ironic_python_agent import hardware
|
||||
|
@ -13,10 +13,11 @@
|
||||
# limitations under the License.
|
||||
import os
|
||||
|
||||
from oslo_log import log
|
||||
|
||||
from ironic_python_agent import errors
|
||||
from ironic_python_agent import hardware
|
||||
from ironic_python_agent import netutils
|
||||
from oslo_log import log
|
||||
|
||||
LOG = log.getLogger()
|
||||
# Mellanox NIC Vendor ID
|
||||
|
@ -15,10 +15,10 @@
|
||||
|
||||
import mock
|
||||
|
||||
from ironic_lib import disk_utils
|
||||
from oslo_concurrency import processutils
|
||||
from oslotest import base as test_base
|
||||
|
||||
from ironic_lib import disk_utils
|
||||
from ironic_python_agent import errors
|
||||
from ironic_python_agent.extensions import iscsi
|
||||
from ironic_python_agent import hardware
|
||||
|
@ -14,11 +14,10 @@
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
|
||||
from ironic_python_agent import utils
|
||||
from oslotest import base as test_base
|
||||
|
||||
from ironic_python_agent.extensions import log
|
||||
from ironic_python_agent import utils
|
||||
|
||||
|
||||
class TestLogExtension(test_base.BaseTestCase):
|
||||
|
1
tox.ini
1
tox.ini
@ -62,6 +62,7 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
|
||||
ignore = E129
|
||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,imagebuild/tinyipa/tinyipafinal,imagebuild/tinyipa/tinyipabuild
|
||||
import-order-style = pep8
|
||||
application-import-names = ironic_python_agent
|
||||
# [H106] Don’t put vim configuration in source files.
|
||||
# [H203] Use assertIs(Not)None to check for None.
|
||||
# [H904] Delay string interpolations at logging calls.
|
||||
|
Loading…
Reference in New Issue
Block a user