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 Feb 23, 2024
1 parent 6273fa1 commit 1daa47c
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 22 deletions.
2 changes: 1 addition & 1 deletion jupyverse_api/jupyverse_api/main/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Any, Callable, Dict, Sequence, Tuple

from asgiref.typing import ASGI3Application
from asphalt.core import Component, Context, add_resource, request_resource
from asphalt.core import Component, add_resource, request_resource
from asphalt.web.fastapi import FastAPIComponent
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth/fps_auth/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging

from asphalt.core import Component, Context, add_resource, request_resource
from asphalt.core import Component, add_resource, request_resource
from fastapi_users.exceptions import UserAlreadyExists

from jupyverse_api.app import App
Expand Down
2 changes: 1 addition & 1 deletion plugins/auth_jupyterhub/fps_auth_jupyterhub/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, ContainerComponent, Context, context_teardown
from asphalt.core import Component, ContainerComponent, Context
from sqlalchemy.ext.asyncio import AsyncEngine, AsyncSession

from jupyverse_api.app import App
Expand Down
1 change: 0 additions & 1 deletion plugins/auth_jupyterhub/fps_auth_jupyterhub/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from functools import partial
from typing import Any, Callable, Dict, List, Optional, Tuple, Union

import httpx
from anyio import Event, Lock, create_task_group
from fastapi import APIRouter, Cookie, Depends, HTTPException, Request, WebSocket, status
from fastapi.responses import RedirectResponse
Expand Down
2 changes: 1 addition & 1 deletion plugins/contents/fps_contents/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, Context, add_resource, request_resource
from asphalt.core import Component, add_resource, request_resource

from jupyverse_api.app import App
from jupyverse_api.auth import Auth
Expand Down
2 changes: 1 addition & 1 deletion plugins/frontend/fps_frontend/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, Context, add_resource
from asphalt.core import Component, add_resource

from jupyverse_api.frontend import FrontendConfig

Expand Down
2 changes: 1 addition & 1 deletion plugins/jupyterlab/fps_jupyterlab/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, Context, add_resource, request_resource
from asphalt.core import Component, add_resource, request_resource

from jupyverse_api.app import App
from jupyverse_api.auth import Auth
Expand Down
4 changes: 2 additions & 2 deletions plugins/kernels/fps_kernels/kernel_driver/connect.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import json
import os
import socket
import sys
import subprocess
import sys
import tempfile
import uuid
from typing import Dict, Optional, Tuple, Union

import zmq
from anyio import open_process
from anyio.abc import Process
from zmq.asyncio import Context, Socket
from zmq.asyncio import Socket

channel_socket_types = {
"hb": zmq.REQ,
Expand Down
2 changes: 1 addition & 1 deletion plugins/kernels/fps_kernels/kernel_driver/driver.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import time
import uuid
from typing import Any, Dict, List, Optional, cast
from typing import Any, Dict, Optional, cast

from anyio import create_memory_object_stream, create_task_group, fail_after
from anyio.streams.stapled import StapledObjectStream
Expand Down
4 changes: 1 addition & 3 deletions plugins/kernels/fps_kernels/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from __future__ import annotations

from collections.abc import AsyncGenerator
from functools import partial
from pathlib import Path
from typing import Optional

from asphalt.core import Component, Context, add_resource, request_resource, start_background_task
from asphalt.core import Component, add_resource, request_resource, start_background_task

from jupyverse_api.app import App
from jupyverse_api.auth import Auth
Expand Down
2 changes: 1 addition & 1 deletion plugins/kernels/fps_kernels/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pathlib import Path
from typing import Dict, List, Optional, Set, Tuple

from anyio import Event, TASK_STATUS_IGNORED, create_task_group
from anyio import TASK_STATUS_IGNORED, Event, create_task_group
from anyio.abc import TaskStatus
from fastapi import HTTPException, Response
from fastapi.responses import FileResponse
Expand Down
2 changes: 1 addition & 1 deletion plugins/lab/fps_lab/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, Context, add_resource, get_resource, request_resource
from asphalt.core import Component, add_resource, get_resource, request_resource

from jupyverse_api.app import App
from jupyverse_api.auth import Auth
Expand Down
2 changes: 1 addition & 1 deletion plugins/login/fps_login/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, Context, add_resource, request_resource
from asphalt.core import Component, add_resource, request_resource

from jupyverse_api.app import App
from jupyverse_api.auth import AuthConfig
Expand Down
2 changes: 1 addition & 1 deletion plugins/nbconvert/fps_nbconvert/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, Context, add_resource, request_resource
from asphalt.core import Component, add_resource, request_resource

from jupyverse_api.app import App
from jupyverse_api.auth import Auth
Expand Down
2 changes: 1 addition & 1 deletion plugins/resource_usage/fps_resource_usage/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, Context, add_resource, request_resource
from asphalt.core import Component, add_resource, request_resource

from jupyverse_api.app import App
from jupyverse_api.auth import Auth
Expand Down
2 changes: 1 addition & 1 deletion plugins/terminals/fps_terminals/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from typing import Type

from asphalt.core import Component, Context, add_resource, request_resource, start_background_task
from asphalt.core import Component, add_resource, request_resource, start_background_task

from jupyverse_api.app import App
from jupyverse_api.auth import Auth
Expand Down
1 change: 0 additions & 1 deletion plugins/terminals/fps_terminals/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import struct
import termios
from functools import partial
from pathlib import Path

from anyio import create_memory_object_stream, create_task_group, from_thread, to_thread
from anyio.abc import ByteReceiveStream, ByteSendStream
Expand Down
2 changes: 1 addition & 1 deletion plugins/webdav/fps_webdav/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from asphalt.core import Component, Context, add_resource, request_resource
from asphalt.core import Component, add_resource, request_resource

from jupyverse_api.app import App

Expand Down
2 changes: 1 addition & 1 deletion plugins/yjs/fps_yjs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from collections.abc import AsyncGenerator
from typing import Optional

from asphalt.core import Component, Context, add_resource, request_resource, start_background_task
from asphalt.core import Component, add_resource, request_resource, start_background_task

from jupyverse_api.app import App
from jupyverse_api.auth import Auth
Expand Down

0 comments on commit 1daa47c

Please sign in to comment.