Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
Expand Down
3 changes: 1 addition & 2 deletions examples/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions src/asphalt/py4j/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Loading