From 49c965f07a91d8a135ecece901fd926f66fe7d3d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:39:56 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.2 → v0.6.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.2...v0.6.4) - [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.1...v1.11.2) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"] From 025afaadd19324b0104945bbe1ae1f28b692c23d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:41:15 +0000 Subject: [PATCH 2/2] [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(