Skip to content

Commit

Permalink
Merge pull request #210 from kpn/fix/bump-deps
Browse files Browse the repository at this point in the history
fix: bump dependencies
  • Loading branch information
woile authored Oct 9, 2024
2 parents 782e0cd + 3f1f477 commit 1ec43b4
Show file tree
Hide file tree
Showing 6 changed files with 681 additions and 646 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bumpversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }}
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion kstreams/prometheus/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def clean_stream_consumer_metrics(self, consumer: Consumer) -> None:
partition = topic_partition.partition

metrics_found = False
for sample in self.MET_LAG.collect()[0].samples:
for sample in list(self.MET_LAG.collect())[0].samples:
if {
"topic": topic,
"partition": str(partition),
Expand Down
7 changes: 7 additions & 0 deletions kstreams/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,13 @@ async def __anext__(self) -> ConsumerRecord:
except errors.ConsumerStoppedError:
raise StopAsyncIteration # noqa: F821

async def __call__(self, *args, **kwargs) -> typing.Any:
"""Make stream work as the wrapped func to keep behavior.
This allows for testing the stream as a normal function.
"""
return self.func(*args, **kwargs)


def stream(
topics: typing.Union[typing.List[str], str],
Expand Down
Loading

0 comments on commit 1ec43b4

Please sign in to comment.