Merge "Enabled hacking checks H305 and H307"
This commit is contained in:
@@ -20,13 +20,11 @@ from taskflow.engines.action_engine import compiler
|
||||
from taskflow.engines.action_engine import executor
|
||||
from taskflow.engines.action_engine import runtime
|
||||
from taskflow.engines import base
|
||||
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.openstack.common import excutils
|
||||
from taskflow import retry
|
||||
from taskflow import states
|
||||
from taskflow import storage as atom_storage
|
||||
|
||||
from taskflow.utils import lock_utils
|
||||
from taskflow.utils import misc
|
||||
from taskflow.utils import reflection
|
||||
|
@@ -14,17 +14,16 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from taskflow import exceptions as excp
|
||||
from taskflow import retry as retry_atom
|
||||
from taskflow import states as st
|
||||
from taskflow import task as task_atom
|
||||
from taskflow.utils import misc
|
||||
|
||||
from taskflow.engines.action_engine import analyzer as ca
|
||||
from taskflow.engines.action_engine import executor as ex
|
||||
from taskflow.engines.action_engine import retry_action as ra
|
||||
from taskflow.engines.action_engine import runner as ru
|
||||
from taskflow.engines.action_engine import task_action as ta
|
||||
from taskflow import exceptions as excp
|
||||
from taskflow import retry as retry_atom
|
||||
from taskflow import states as st
|
||||
from taskflow import task as task_atom
|
||||
from taskflow.utils import misc
|
||||
|
||||
|
||||
class Runtime(object):
|
||||
|
@@ -16,9 +16,8 @@
|
||||
|
||||
import abc
|
||||
|
||||
import six
|
||||
|
||||
from concurrent import futures
|
||||
import six
|
||||
|
||||
from taskflow.engines.action_engine import executor
|
||||
from taskflow.types import time
|
||||
|
@@ -14,11 +14,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import kombu
|
||||
import logging
|
||||
import socket
|
||||
import threading
|
||||
|
||||
import kombu
|
||||
import six
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
@@ -26,7 +26,6 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
sys.path.insert(0, top_dir)
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow.patterns import unordered_flow as uf
|
||||
from taskflow import task
|
||||
|
@@ -35,7 +35,6 @@ sys.path.insert(0, self_dir)
|
||||
# while the function will have returned.
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow.listeners import base
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow import states
|
||||
|
@@ -28,10 +28,9 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
sys.path.insert(0, top_dir)
|
||||
|
||||
|
||||
from taskflow.openstack.common import uuidutils
|
||||
|
||||
from taskflow import engines
|
||||
from taskflow.listeners import printing
|
||||
from taskflow.openstack.common import uuidutils
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow import task
|
||||
|
@@ -28,7 +28,6 @@ sys.path.insert(0, top_dir)
|
||||
sys.path.insert(0, self_dir)
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow import task
|
||||
from taskflow.utils import persistence_utils as p_utils
|
||||
|
@@ -30,7 +30,6 @@ sys.path.insert(0, example_dir)
|
||||
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow import states
|
||||
|
||||
import example_utils # noqa
|
||||
|
@@ -31,15 +31,12 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
sys.path.insert(0, top_dir)
|
||||
sys.path.insert(0, self_dir)
|
||||
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
|
||||
from taskflow.openstack.common import uuidutils
|
||||
|
||||
from taskflow import engines
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.openstack.common import uuidutils
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow import task
|
||||
|
||||
from taskflow.utils import eventlet_utils as e_utils
|
||||
from taskflow.utils import persistence_utils as p_utils
|
||||
|
||||
|
@@ -31,12 +31,10 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
sys.path.insert(0, top_dir)
|
||||
sys.path.insert(0, self_dir)
|
||||
|
||||
from taskflow import engines
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
|
||||
from taskflow import engines
|
||||
from taskflow import task
|
||||
|
||||
from taskflow.utils import persistence_utils as p_utils
|
||||
|
||||
import example_utils # noqa
|
||||
|
@@ -26,7 +26,6 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
sys.path.insert(0, top_dir)
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow import task
|
||||
|
||||
|
@@ -26,7 +26,6 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
sys.path.insert(0, top_dir)
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow import task
|
||||
|
||||
|
@@ -29,7 +29,6 @@ sys.path.insert(0, top_dir)
|
||||
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow import exceptions
|
||||
from taskflow.patterns import unordered_flow as uf
|
||||
from taskflow import task
|
||||
|
@@ -20,6 +20,7 @@ down_revision = '84d6e888850'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
from taskflow import states
|
||||
|
||||
|
||||
|
@@ -28,6 +28,7 @@ down_revision = '1c783c0c2875'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
from taskflow.persistence import logbook
|
||||
|
||||
|
||||
|
@@ -25,7 +25,6 @@ from sqlalchemy import types as types
|
||||
from taskflow.openstack.common import jsonutils
|
||||
from taskflow.openstack.common import timeutils
|
||||
from taskflow.openstack.common import uuidutils
|
||||
|
||||
from taskflow.persistence import logbook
|
||||
from taskflow import states
|
||||
|
||||
|
@@ -14,15 +14,13 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import fixtures
|
||||
import mock
|
||||
|
||||
import six
|
||||
from testtools import compat
|
||||
from testtools import matchers
|
||||
from testtools import testcase
|
||||
|
||||
import fixtures
|
||||
import six
|
||||
|
||||
from taskflow import exceptions
|
||||
from taskflow.tests import utils
|
||||
from taskflow.utils import misc
|
||||
|
@@ -15,11 +15,11 @@
|
||||
# under the License.
|
||||
|
||||
import contextlib
|
||||
import mock
|
||||
import threading
|
||||
import time
|
||||
|
||||
from kazoo.recipe import watchers
|
||||
import mock
|
||||
|
||||
from taskflow import exceptions as excp
|
||||
from taskflow.openstack.common import uuidutils
|
||||
|
@@ -16,16 +16,14 @@
|
||||
|
||||
import six
|
||||
import testtools
|
||||
|
||||
from zake import fake_client
|
||||
from zake import utils as zake_utils
|
||||
|
||||
from taskflow.jobs.backends import impl_zookeeper
|
||||
from taskflow import states
|
||||
from taskflow import test
|
||||
|
||||
from taskflow.openstack.common import jsonutils
|
||||
from taskflow.openstack.common import uuidutils
|
||||
from taskflow import states
|
||||
from taskflow import test
|
||||
from taskflow.tests.unit.jobs import base
|
||||
from taskflow.tests import utils as test_utils
|
||||
from taskflow.utils import kazoo_utils
|
||||
|
@@ -17,7 +17,6 @@
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow import retry
|
||||
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow import retry
|
||||
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.patterns import unordered_flow as uf
|
||||
from taskflow import retry
|
||||
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils
|
||||
|
||||
|
@@ -25,10 +25,9 @@ from taskflow.openstack.common import uuidutils
|
||||
from taskflow.persistence import backends
|
||||
from taskflow.persistence.backends import impl_zookeeper
|
||||
from taskflow import test
|
||||
from taskflow.utils import kazoo_utils
|
||||
|
||||
from taskflow.tests.unit.persistence import base
|
||||
from taskflow.tests import utils as test_utils
|
||||
from taskflow.utils import kazoo_utils
|
||||
|
||||
TEST_PATH_TPL = '/taskflow/persistence-test/%s'
|
||||
_ZOOKEEPER_AVAILABLE = test_utils.zookeeper_available(
|
||||
|
@@ -15,28 +15,25 @@
|
||||
# under the License.
|
||||
|
||||
import contextlib
|
||||
import testtools
|
||||
import threading
|
||||
|
||||
from concurrent import futures
|
||||
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow.patterns import unordered_flow as uf
|
||||
import testtools
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow.engines.action_engine import engine as eng
|
||||
from taskflow.engines.worker_based import engine as w_eng
|
||||
from taskflow.engines.worker_based import worker as wkr
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow.patterns import unordered_flow as uf
|
||||
from taskflow.persistence import logbook
|
||||
from taskflow import states
|
||||
from taskflow import task
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils
|
||||
from taskflow.types import graph as gr
|
||||
|
||||
from taskflow.utils import eventlet_utils as eu
|
||||
from taskflow.utils import misc
|
||||
from taskflow.utils import persistence_utils as p_utils
|
||||
|
@@ -16,17 +16,15 @@
|
||||
|
||||
import string
|
||||
|
||||
from taskflow.engines.action_engine import compiler
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow.patterns import unordered_flow as uf
|
||||
from taskflow import retry
|
||||
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils as t_utils
|
||||
|
||||
from taskflow.engines.action_engine import compiler
|
||||
|
||||
|
||||
def _make_many(amount):
|
||||
assert amount <= len(string.ascii_lowercase), 'Not enough letters'
|
||||
|
@@ -15,7 +15,6 @@
|
||||
# under the License.
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils
|
||||
|
@@ -15,17 +15,17 @@
|
||||
# under the License.
|
||||
|
||||
import contextlib
|
||||
import mock
|
||||
import time
|
||||
|
||||
from taskflow import task
|
||||
from taskflow import test
|
||||
import mock
|
||||
|
||||
import taskflow.engines
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.listeners import timing
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow.persistence.backends import impl_memory
|
||||
from taskflow import task
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils as t_utils
|
||||
from taskflow.utils import persistence_utils as p_utils
|
||||
|
||||
|
@@ -16,14 +16,13 @@
|
||||
|
||||
import mock
|
||||
|
||||
import taskflow.engines
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.patterns import linear_flow
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils as test_utils
|
||||
from taskflow.utils import persistence_utils as p_utils
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
|
||||
class EngineLoadingTestCase(test.TestCase):
|
||||
def test_default_load(self):
|
||||
|
@@ -14,11 +14,10 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from taskflow import exceptions
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow.patterns import unordered_flow as uf
|
||||
|
||||
from taskflow import exceptions
|
||||
from taskflow import retry
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils
|
||||
|
@@ -15,7 +15,6 @@
|
||||
# under the License.
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow.patterns import linear_flow
|
||||
from taskflow import task as base
|
||||
from taskflow import test
|
||||
|
@@ -16,12 +16,11 @@
|
||||
|
||||
import contextlib
|
||||
|
||||
from taskflow import task
|
||||
from taskflow import test
|
||||
|
||||
import taskflow.engines
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow.persistence.backends import impl_memory
|
||||
from taskflow import task
|
||||
from taskflow import test
|
||||
from taskflow.utils import persistence_utils as p_utils
|
||||
|
||||
|
||||
|
@@ -14,13 +14,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import taskflow.engines
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow.patterns import graph_flow as gf
|
||||
from taskflow.patterns import linear_flow as lf
|
||||
from taskflow.patterns import unordered_flow as uf
|
||||
|
||||
import taskflow.engines
|
||||
|
||||
from taskflow import exceptions as exc
|
||||
from taskflow import retry
|
||||
from taskflow import states as st
|
||||
from taskflow import test
|
||||
|
@@ -14,9 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import testtools
|
||||
|
||||
from concurrent import futures
|
||||
import testtools
|
||||
|
||||
from taskflow import test
|
||||
from taskflow.utils import async_utils as au
|
||||
|
@@ -19,7 +19,6 @@ import six
|
||||
from taskflow import exceptions
|
||||
from taskflow import test
|
||||
from taskflow.tests import utils as test_utils
|
||||
|
||||
from taskflow.utils import misc
|
||||
|
||||
|
||||
|
@@ -14,12 +14,12 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
import threading
|
||||
import time
|
||||
|
||||
from concurrent import futures
|
||||
from kombu import exceptions as kombu_exc
|
||||
import mock
|
||||
|
||||
from taskflow.engines.worker_based import executor
|
||||
from taskflow.engines.worker_based import protocol as pr
|
||||
|
@@ -14,9 +14,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
|
||||
from concurrent import futures
|
||||
import mock
|
||||
|
||||
from taskflow.engines.worker_based import protocol as pr
|
||||
from taskflow import test
|
||||
|
@@ -14,10 +14,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
import socket
|
||||
import threading
|
||||
|
||||
import mock
|
||||
|
||||
from taskflow.engines.worker_based import proxy
|
||||
from taskflow import test
|
||||
|
||||
|
@@ -14,11 +14,9 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import mock
|
||||
|
||||
import six
|
||||
|
||||
from kombu import exceptions as exc
|
||||
import mock
|
||||
import six
|
||||
|
||||
from taskflow.engines.worker_based import endpoint as ep
|
||||
from taskflow.engines.worker_based import protocol as pr
|
||||
|
Reference in New Issue
Block a user