Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 1, 2022
1 parent b9c3e62 commit f41110d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
3 changes: 1 addition & 2 deletions tests/services/kernels/test_config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest
from traitlets.config import Config

from jupyter_server_kernels.kernels.kernelmanager import AsyncMappingKernelManager
from traitlets.config import Config


@pytest.fixture
Expand Down
6 changes: 3 additions & 3 deletions tests/services/kernels/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

from jupyter_client.jsonutil import json_clean, json_default
from jupyter_client.session import Session
from jupyter_server_kernels.kernels.connection.channels import (
ZMQChannelsWebsocketConnection,
)
from tornado.httpserver import HTTPRequest
from tornado.websocket import WebSocketHandler

from jupyter_server.serverapp import ServerApp
from jupyter_server_kernels.kernels.connection.channels import (
ZMQChannelsWebsocketConnection,
)


async def test_websocket_connection(jp_serverapp):
Expand Down
2 changes: 1 addition & 1 deletion tests/services/sessions/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
import pytest
import tornado
from jupyter_client.ioloop import AsyncIOLoopKernelManager
from jupyter_server_kernels.kernels.kernelmanager import AsyncMappingKernelManager
from nbformat import writes
from nbformat.v4 import new_notebook
from tornado.httpclient import HTTPClientError
from traitlets import default

from jupyter_server_kernels.kernels.kernelmanager import AsyncMappingKernelManager
from jupyter_server.utils import url_path_join

from ...utils import expected_http_error
Expand Down
10 changes: 5 additions & 5 deletions tests/services/sessions/test_manager.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import asyncio

import pytest
from tornado import web
from traitlets import TraitError

from jupyter_server._tz import isoformat, utcnow
from jupyter_server.services.contents.manager import ContentsManager
from jupyter_server_kernels.kernels.kernelmanager import MappingKernelManager
from jupyter_server_kernels.sessions.sessionmanager import (
KernelSessionRecord,
KernelSessionRecordConflict,
KernelSessionRecordList,
SessionManager,
)
from tornado import web
from traitlets import TraitError

from jupyter_server._tz import isoformat, utcnow
from jupyter_server.services.contents.manager import ContentsManager


class DummyKernel:
Expand Down
1 change: 0 additions & 1 deletion tests/test_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os

from jupyter_client.session import Session

from jupyter_server_kernels.kernels.connection.base import (
deserialize_binary_message,
serialize_binary_message,
Expand Down

0 comments on commit f41110d

Please sign in to comment.