diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 327b622..8158bf2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,14 +16,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.2 + rev: v0.6.4 hooks: - id: ruff args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.11.2 hooks: - id: mypy args: ["--explicit-package-bases"] 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(