Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #18

Merged
merged 2 commits into from
Sep 9, 2024
Merged
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
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
Loading