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 Jan 28, 2025
1 parent 1eb8b79 commit f0280ce
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 24 deletions.
3 changes: 2 additions & 1 deletion jupyverse_api/jupyverse_api/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import sys
from typing import Any, List, Tuple

from fastaio import get_config, get_root_component, main as fastaio_main, merge_config
import rich_click as click
from fastaio import get_config, get_root_component, merge_config
from fastaio import main as fastaio_main

if sys.version_info < (3, 10):
from importlib_metadata import entry_points
Expand Down
9 changes: 4 additions & 5 deletions jupyverse_api/jupyverse_api/main/__init__.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
from __future__ import annotations

import logging

import webbrowser
from typing import Annotated, Any, Callable, Dict, List, Sequence

import structlog
from anyio import Event, create_task_group
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastaio import Component
from fastaio.web.fastapi import FastAPIComponent
from jupyverse_api import Config
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel, Json

from ..app import App
from jupyverse_api import Config

from ..app import App

logger = structlog.get_logger()

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,7 +1,7 @@
import structlog
from fastaio import Component
from fastapi_users.exceptions import UserAlreadyExists

import structlog
from jupyverse_api.app import App
from jupyverse_api.auth import Auth, AuthConfig
from jupyverse_api.frontend import FrontendConfig
Expand Down
5 changes: 0 additions & 5 deletions plugins/kernels/fps_kernels/main.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from __future__ import annotations

from pathlib import Path

import structlog
from anyio import create_task_group
from anyioutils import create_task
from fastaio import Component

from jupyverse_api.app import App
Expand All @@ -14,10 +11,8 @@
from jupyverse_api.main import Lifespan
from jupyverse_api.yjs import Yjs

from .kernel_driver.paths import jupyter_runtime_dir
from .routes import _Kernels


log = structlog.get_logger()


Expand Down
1 change: 0 additions & 1 deletion plugins/kernels/fps_kernels/routes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
import logging
import uuid
from functools import partial
from http import HTTPStatus
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 fastaio import Component, Context
from fastaio import Component

from jupyverse_api.app import App
from jupyverse_api.auth import AuthConfig
Expand Down
3 changes: 1 addition & 2 deletions plugins/notebook/fps_notebook/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import structlog
from fastaio import Component

import structlog
from jupyverse_api.app import App
from jupyverse_api.auth import Auth
from jupyverse_api.frontend import FrontendConfig
Expand All @@ -9,7 +9,6 @@

from .routes import _Notebook


logger = structlog.get_logger()


Expand Down
1 change: 0 additions & 1 deletion plugins/webdav/tests/test_webdav.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import easywebdav # type: ignore
import pytest
from anyio import to_thread
from asphalt.core import Context

from jupyverse_api.main import JupyverseComponent

Expand Down
2 changes: 1 addition & 1 deletion tests/test_auth.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import pytest
from fastaio import get_root_component, merge_config
from httpx import AsyncClient
from httpx_ws import WebSocketUpgradeError, aconnect_ws
from utils import authenticate_client

from fastaio import get_root_component, merge_config
from jupyverse_api.auth import AuthConfig

CONFIG = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest
from fastaio import get_root_component, merge_config
from httpx import AsyncClient
from utils import clear_content_values, configure, create_content, sort_content_by_name
from utils import clear_content_values, create_content, sort_content_by_name

CONFIG = {
"jupyverse": {
Expand Down
1 change: 0 additions & 1 deletion tests/test_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from fps_kernels.kernel_server.server import KernelServer, kernels
from httpx import AsyncClient
from httpx_ws import aconnect_ws
from utils import configure

os.environ["PYDEVD_DISABLE_FILE_VALIDATION"] = "1"

Expand Down
3 changes: 0 additions & 3 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import pytest
from fastaio import get_root_component, merge_config
from httpx import AsyncClient
from utils import configure

from jupyverse_api.main import JupyverseComponent

test_theme = {"raw": '{// jupyverse test\n"theme": "JupyterLab Dark"}'}

Expand Down
1 change: 0 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from copy import deepcopy
from typing import Dict, List, Optional
from uuid import uuid4

Expand Down

0 comments on commit f0280ce

Please sign in to comment.