From fbfd1e90e38db2abbb3da5b89e8647bae225ca06 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Sep 2022 21:06:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_client.py | 2 +- tests/test_kernelmanager.py | 6 +++--- tests/test_multikernelmanager.py | 2 +- tests/test_provisioning.py | 4 +--- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index 594131b48..b77859cb7 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -7,11 +7,11 @@ import pytest from IPython.utils.capture import capture_output -from jupyter_client.manager import start_new_kernel from .utils import test_env from jupyter_client.kernelspec import KernelSpecManager from jupyter_client.kernelspec import NATIVE_KERNEL_NAME from jupyter_client.kernelspec import NoSuchKernel +from jupyter_client.manager import start_new_kernel TIMEOUT = 30 diff --git a/tests/test_kernelmanager.py b/tests/test_kernelmanager.py index e5a072334..e92ad0bf6 100644 --- a/tests/test_kernelmanager.py +++ b/tests/test_kernelmanager.py @@ -15,13 +15,13 @@ from jupyter_core import paths from traitlets.config.loader import Config -from jupyter_client.manager import _ShutdownStatus -from jupyter_client.manager import start_new_async_kernel -from jupyter_client.manager import start_new_kernel from .utils import AsyncKMSubclass from .utils import SyncKMSubclass from jupyter_client import AsyncKernelManager from jupyter_client import KernelManager +from jupyter_client.manager import _ShutdownStatus +from jupyter_client.manager import start_new_async_kernel +from jupyter_client.manager import start_new_kernel pjoin = os.path.join diff --git a/tests/test_multikernelmanager.py b/tests/test_multikernelmanager.py index 1fad3755b..20d9527bd 100644 --- a/tests/test_multikernelmanager.py +++ b/tests/test_multikernelmanager.py @@ -14,7 +14,6 @@ from tornado.testing import gen_test from traitlets.config.loader import Config -from jupyter_client.localinterfaces import localhost from .utils import AsyncKMSubclass from .utils import AsyncMKMSubclass from .utils import install_kernel @@ -24,6 +23,7 @@ from .utils import test_env from jupyter_client import AsyncKernelManager from jupyter_client import KernelManager +from jupyter_client.localinterfaces import localhost from jupyter_client.multikernelmanager import AsyncMultiKernelManager from jupyter_client.multikernelmanager import MultiKernelManager diff --git a/tests/test_provisioning.py b/tests/test_provisioning.py index d74be112a..33a8cc37b 100644 --- a/tests/test_provisioning.py +++ b/tests/test_provisioning.py @@ -217,9 +217,7 @@ def mock_get_all_provisioners() -> List[EntryPoint]: def mock_get_provisioner(factory, name) -> EntryPoint: if name == 'new-test-provisioner': - return EntryPoint( - 'new-test-provisioner', 'tests.test_provisioning', 'NewTestProvisioner' - ) + return EntryPoint('new-test-provisioner', 'tests.test_provisioning', 'NewTestProvisioner') if name in initial_provisioner_map: return EntryPoint(name, initial_provisioner_map[name][0], initial_provisioner_map[name][1])