Fix H307 errors in tacker code
This Patch fixes all H307 errors and enables this test for all new patches to tacker. "H307 like imports should be grouped together" Change-Id: I48a41e2333c3286e8610158c89a84f6ca0ef1fcc Related-Bug: 1515930
This commit is contained in:
parent
5eaca4653e
commit
4914f42ae7
@ -19,7 +19,6 @@ import itertools
|
||||
|
||||
from tacker.common import rpc_compat
|
||||
from tacker.common import topics
|
||||
|
||||
from tacker.openstack.common import log as logging
|
||||
from tacker.openstack.common import timeutils
|
||||
|
||||
|
@ -22,15 +22,13 @@ import sys
|
||||
|
||||
import eventlet
|
||||
eventlet.monkey_patch()
|
||||
|
||||
from oslo_config import cfg
|
||||
|
||||
from tacker.common import config
|
||||
from tacker.openstack.common import service as common_service
|
||||
from tacker import service
|
||||
|
||||
from tacker.openstack.common import gettextutils
|
||||
from tacker.openstack.common import log as logging
|
||||
from tacker.openstack.common import service as common_service
|
||||
from tacker import service
|
||||
gettextutils.install('tacker', lazy=True)
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@ -29,9 +29,8 @@ import signal
|
||||
import socket
|
||||
import uuid
|
||||
|
||||
import netaddr
|
||||
|
||||
from eventlet.green import subprocess
|
||||
import netaddr
|
||||
from oslo_config import cfg
|
||||
|
||||
from tacker.common import constants as q_const
|
||||
|
@ -18,7 +18,6 @@
|
||||
"""Context: context for security/db session."""
|
||||
|
||||
import copy
|
||||
|
||||
import datetime
|
||||
|
||||
from tacker.db import api as db_api
|
||||
|
@ -15,9 +15,8 @@
|
||||
import json
|
||||
|
||||
import mock
|
||||
import testtools
|
||||
|
||||
from oslo_utils import timeutils
|
||||
import testtools
|
||||
|
||||
from tacker.vm.monitor import VNFMonitor
|
||||
|
||||
|
@ -19,11 +19,10 @@
|
||||
import sys
|
||||
import time
|
||||
|
||||
import yaml
|
||||
|
||||
from heatclient import exc as heatException
|
||||
from oslo_config import cfg
|
||||
from toscaparser.utils import yamlparser
|
||||
import yaml
|
||||
|
||||
from tacker.common import clients
|
||||
from tacker.common import log
|
||||
|
@ -18,9 +18,8 @@
|
||||
#
|
||||
# @author: Isaku Yamahata, Intel Corporation.
|
||||
|
||||
import yaml
|
||||
|
||||
from oslo_config import cfg
|
||||
import yaml
|
||||
|
||||
from tacker.agent.linux import utils
|
||||
from tacker.common import log
|
||||
|
@ -23,10 +23,9 @@ import inspect
|
||||
import threading
|
||||
import time
|
||||
|
||||
import six
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_utils import timeutils
|
||||
import six
|
||||
|
||||
from tacker.common import clients
|
||||
from tacker.common import driver_manager
|
||||
|
@ -24,7 +24,6 @@ import copy
|
||||
import inspect
|
||||
|
||||
import eventlet
|
||||
|
||||
from oslo_config import cfg
|
||||
|
||||
from tacker.api.v1 import attributes
|
||||
|
3
tox.ini
3
tox.ini
@ -73,12 +73,11 @@ commands = {posargs}
|
||||
# H237 module is removed in Python 3
|
||||
# H302 import only modules
|
||||
# H304 no relative imports
|
||||
# H307 like imports should be grouped together
|
||||
# H402 one line docstring needs punctuation
|
||||
# H405 multi line docstring summary not separated with an empty line
|
||||
# H904 Wrap long lines in parentheses instead of a backslash
|
||||
# TODO(marun) H404 multi line docstring should start with a summary
|
||||
ignore = E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H237,H302,H304,H307,H402,H404,H405,H904
|
||||
ignore = E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H237,H302,H304,H402,H404,H405,H904
|
||||
show-source = true
|
||||
builtins = _
|
||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject
|
||||
|
Loading…
x
Reference in New Issue
Block a user