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 Sep 2, 2024
1 parent 928217f commit 2a6d551
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion src/asphalt/py4j/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
7 changes: 4 additions & 3 deletions tests/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2a6d551

Please sign in to comment.