diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3379c83..bcefa46 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ # * Run "pre-commit install". repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-toml - id: check-yaml @@ -16,14 +16,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.5 + rev: v0.15.12 hooks: - id: ruff args: [--fix, --show-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.20.2 hooks: - id: mypy args: ["--explicit-package-bases"] diff --git a/examples/simple.py b/examples/simple.py index 451c211..47e5f18 100644 --- a/examples/simple.py +++ b/examples/simple.py @@ -3,9 +3,8 @@ standard output. """ -from py4j.java_gateway import JavaGateway - from asphalt.core import CLIApplicationComponent, Context, run_application +from py4j.java_gateway import JavaGateway class ApplicationComponent(CLIApplicationComponent): diff --git a/src/asphalt/py4j/component.py b/src/asphalt/py4j/component.py index f0d8bea..985041f 100644 --- a/src/asphalt/py4j/component.py +++ b/src/asphalt/py4j/component.py @@ -8,6 +8,7 @@ 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 c8fbb40..237579e 100644 --- a/tests/test_component.py +++ b/tests/test_component.py @@ -5,11 +5,11 @@ from typing import Any import pytest +from asphalt.core.context import Context 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