From 1f041640ae22c7046d56739fab25725eb8d8ef85 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:48:21 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/simple.py | 3 ++- src/asphalt/py4j/component.py | 1 - tests/test_component.py | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/simple.py b/examples/simple.py index 47e5f18..451c211 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -3,9 +3,10 @@ standard output. """ -from asphalt.core import CLIApplicationComponent, Context, run_application from py4j.java_gateway import JavaGateway +from asphalt.core import CLIApplicationComponent, Context, run_application + class ApplicationComponent(CLIApplicationComponent): async def start(self, ctx: Context) -> None: diff --git a/src/asphalt/py4j/component.py b/src/asphalt/py4j/component.py index 985041f..f0d8bea 100644 --- a/src/asphalt/py4j/component.py +++ b/src/asphalt/py4j/component.py @@ -8,7 +8,6 @@ from typing import Any, Iterable, cast from asphalt.core import Component, Context, context_teardown - from py4j.java_gateway import ( CallbackServerParameters, GatewayParameters, diff --git a/tests/test_component.py b/tests/test_component.py index 0d4084f..c8fbb40 100644 --- a/tests/test_component.py +++ b/tests/test_component.py @@ -4,13 +4,14 @@ import os from typing import Any -import asphalt.py4j import pytest -from asphalt.core.context import Context -from asphalt.py4j.component import Py4JComponent from py4j.java_gateway import CallbackServerParameters, GatewayParameters, JavaGateway from pytest import LogCaptureFixture +import asphalt.py4j +from asphalt.core.context import Context +from asphalt.py4j.component import Py4JComponent + @pytest.mark.anyio @pytest.mark.parametrize(