Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 23, 2024
1 parent ecb8a8d commit 7c3e9e2
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from aiokafka.admin import AIOKafkaAdminClient, NewTopic

from asphalt.core import get_resource


Expand Down
1 change: 1 addition & 0 deletions examples/consumer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from aiokafka import AIOKafkaConsumer

from asphalt.core import get_resource


Expand Down
1 change: 1 addition & 0 deletions examples/producer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from aiokafka import AIOKafkaProducer

from asphalt.core import get_resource


Expand Down
1 change: 1 addition & 0 deletions src/asphalt/kafka/_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import Any

from aiokafka.admin import AIOKafkaAdminClient

from asphalt.core import Component, add_resource, get_resource


Expand Down
1 change: 1 addition & 0 deletions src/asphalt/kafka/_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from typing import Any

from aiokafka import AIOKafkaConsumer

from asphalt.core import Component, add_resource, context_teardown, get_resource


Expand Down
1 change: 1 addition & 0 deletions src/asphalt/kafka/_producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import Any

from aiokafka import AIOKafkaProducer

from asphalt.core import Component, add_resource, get_resource


Expand Down
2 changes: 1 addition & 1 deletion tests/test_admin_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import pytest
from aiokafka.admin import AIOKafkaAdminClient
from asphalt.core import Context, add_resource, get_resource_nowait, start_component

from asphalt.core import Context, add_resource, get_resource_nowait, start_component
from asphalt.kafka import KafkaAdminComponent

pytestmark = pytest.mark.anyio
Expand Down
2 changes: 1 addition & 1 deletion tests/test_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import pytest
from aiokafka import AIOKafkaConsumer
from asphalt.core import Context, add_resource, get_resource_nowait, start_component

from asphalt.core import Context, add_resource, get_resource_nowait, start_component
from asphalt.kafka import KafkaConsumerComponent

pytestmark = pytest.mark.anyio
Expand Down
2 changes: 1 addition & 1 deletion tests/test_producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import pytest
from aiokafka import AIOKafkaProducer
from asphalt.core import Context, add_resource, get_resource_nowait, start_component

from asphalt.core import Context, add_resource, get_resource_nowait, start_component
from asphalt.kafka import KafkaProducerComponent

pytestmark = pytest.mark.anyio
Expand Down

0 comments on commit 7c3e9e2

Please sign in to comment.