Skip to content

Commit

Permalink
release 0.4.0 (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje authored Jan 30, 2024
1 parent 928d6ed commit a82cd95
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
uses: actions/dependency-review-action@v4
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"filename": "docs/docs/en/release.md",
"hashed_secret": "35675e68f4b5af7b995d9205ad0fc43842f16450",
"is_verified": false,
"line_number": 502,
"line_number": 529,
"is_secret": false
}
],
Expand Down Expand Up @@ -163,5 +163,5 @@
}
]
},
"generated_at": "2024-01-10T10:22:36Z"
"generated_at": "2024-01-30T11:15:38Z"
}
8 changes: 2 additions & 6 deletions faststream/broker/fastapi/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,8 @@ class StreamRouter(APIRouter, Generic[MsgType]):
broker_class: Type[BrokerAsyncUsecase[MsgType, Any]]
broker: BrokerAsyncUsecase[MsgType, Any]
docs_router: Optional[APIRouter]
_after_startup_hooks: List[
Callable[[Any], Awaitable[Optional[Mapping[str, Any]]]]
]
_on_shutdown_hooks: List[
Callable[[Any], Awaitable[None]]
]
_after_startup_hooks: List[Callable[[Any], Awaitable[Optional[Mapping[str, Any]]]]]
_on_shutdown_hooks: List[Callable[[Any], Awaitable[None]]]
schema: Optional[Schema]

title: str
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ docs = [

# dev dependencies
devdocs = [
"mkdocs-material==9.5.4",
"mkdocs-material==9.5.6",
"mkdocs-static-i18n==1.2.0",
"mdx-include==1.4.2",
"mkdocstrings[python]==0.24.0",
Expand All @@ -94,7 +94,7 @@ devdocs = [
"mkdocs-glightbox==0.3.6", # img zoom
"pillow==10.2.0",
"cairosvg==2.7.1",
"black==23.12.1",
"black==24.1.1",
"requests", # do not pin it
]

Expand All @@ -113,7 +113,7 @@ lint = [
]

test-core = [
"coverage[toml]==7.4.0",
"coverage[toml]==7.4.1",
"pytest==7.4.4",
"pytest-asyncio==0.23.3",
"dirty-equals==0.7.1.post0",
Expand Down
2 changes: 2 additions & 0 deletions tests/docs/getting_started/context/test_custom_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ async def test_custom_global_context_kafka():

handle.mock.assert_called_once_with("Hi!")


@pytest.mark.asyncio()
async def test_custom_global_context_confluent():
from docs.docs_src.getting_started.context.confluent.custom_global_context import (
Expand All @@ -34,6 +35,7 @@ async def test_custom_global_context_confluent():

handle.mock.assert_called_once_with("Hi!")


@pytest.mark.asyncio()
async def test_custom_global_context_rabbit():
from docs.docs_src.getting_started.context.rabbit.custom_global_context import (
Expand Down

0 comments on commit a82cd95

Please sign in to comment.