enable pep8 alphabetical imports check for nova-api-proxy

This commit re-orders the imports alphabetically.

This following pep8 warning is no longer suppressed
for nova-api-proxy:
   H306: imports not in alphabetical order

This change should have no functional impact on the code

Story: 2004515
Task: 28555
Change-Id: Ia60f9b4fcf030658e49ce350cb58721480358c19
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
This commit is contained in:
Al Bailey 2018-12-17 11:44:34 -06:00
parent 29f3a1caaa
commit 995238ec3c
8 changed files with 27 additions and 21 deletions

View File

@ -5,16 +5,17 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
import os
import sys
import signal
import eventlet import eventlet
import os
import signal
import sys
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging from oslo_log import log as logging
from nova_api_proxy.common import config from nova_api_proxy.common import config
from nova_api_proxy.common.service import Server
from nova_api_proxy.common import histogram from nova_api_proxy.common import histogram
from nova_api_proxy.common.service import Server
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -4,19 +4,20 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
import json import json
from paste.request import construct_url
import routes import routes
import webob.dec import webob.dec
import webob.exc import webob.exc
from paste.request import construct_url
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging from oslo_log import log as logging
from nova_api_proxy.common import utils
from nova_api_proxy.apps.dispatcher import APIDispatcher
from nova_api_proxy.apps.dispatcher import Router
from nova_api_proxy.apps.proxy import Proxy
from nova_api_proxy.common.service import Middleware from nova_api_proxy.common.service import Middleware
from nova_api_proxy.common.service import Request from nova_api_proxy.common.service import Request
from nova_api_proxy.apps.dispatcher import Router from nova_api_proxy.common import utils
from nova_api_proxy.apps.dispatcher import APIDispatcher
from nova_api_proxy.apps.proxy import Proxy
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -10,8 +10,9 @@ import webob.exc
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as proxy_log from oslo_log import log as proxy_log
from nova_api_proxy.common import utils
from nova_api_proxy.common.service import Middleware from nova_api_proxy.common.service import Middleware
from nova_api_proxy.common import utils
LOG = proxy_log.getLogger(__name__) LOG = proxy_log.getLogger(__name__)

View File

@ -13,13 +13,15 @@
# #
import httplib import httplib
import urllib
from paste.proxy import TransparentProxy
from paste.proxy import parse_headers from paste.proxy import parse_headers
from paste.proxy import TransparentProxy
import urllib
from oslo_log import log as logging from oslo_log import log as logging
from nova_api_proxy.common import histogram
from nova_api_proxy.common.service import Application from nova_api_proxy.common.service import Application
from nova_api_proxy.common.timestamp import get_monotonic_timestamp_in_ms from nova_api_proxy.common.timestamp import get_monotonic_timestamp_in_ms
from nova_api_proxy.common import histogram
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -3,9 +3,9 @@
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
import math
import array import array
import datetime import datetime
import math
from oslo_log import log as logging from oslo_log import log as logging

View File

@ -15,14 +15,16 @@
# #
import errno import errno
import os
import eventlet import eventlet
import webob.dec
import webob.exc
import eventlet.greenio import eventlet.greenio
import eventlet.wsgi import eventlet.wsgi
import os
import webob.dec
import webob.exc
from eventlet.green import socket from eventlet.green import socket
from eventlet.green import ssl from eventlet.green import ssl
from oslo_config import cfg from oslo_config import cfg
from oslo_log import log as logging from oslo_log import log as logging

View File

@ -3,8 +3,8 @@
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
import os
import ctypes import ctypes
import os
CLOCK_MONOTONIC_RAW = 4 # from <linux/time.h> CLOCK_MONOTONIC_RAW = 4 # from <linux/time.h>

View File

@ -25,20 +25,19 @@ commands = {posargs}
# - hacking codes - # - hacking codes -
# H104: File contains nothing but comments # H104: File contains nothing but comments
# H301: one import per line # H301: one import per line
# H306: imports not in alphabetical order
# H404: multi line docstring should start without a leading new line # H404: multi line docstring should start without a leading new line
# H405: multi line docstring summary not separated with an empty line # H405: multi line docstring summary not separated with an empty line
# H501: Do not use self.__dict__ for string formatting # H501: Do not use self.__dict__ for string formatting
# - flake8 codes - # - flake8 codes -
# F821 undefined name 'unicode' (python3 specific) # F821 undefined name 'unicode' (python3 specific)
ignore=E123,E127,E129 ignore=E123,E127,E129
H104,H301,H306,H404,H405,H501, H104,H301,H404,H405,H501,
F821 F821
# H106 Dont put vim configuration in source files (off by default). # H106 Dont put vim configuration in source files (off by default).
# H203 Use assertIs(Not)None to check for None (off by default). # H203 Use assertIs(Not)None to check for None (off by default).
# TODO: enable: H904 Delay string interpolations at logging calls (off by default). # TODO: enable: H904 Delay string interpolations at logging calls (off by default).
enable-extensions = H106,H203 enable-extensions = H106,H203
max-line-length=84 max-line-length=84
[testenv:pep8] [testenv:pep8]
usedevelop = False usedevelop = False