update pre-commit hooks

This commit is contained in:
David Lord 2024-01-16 10:12:10 -08:00
parent 6000e80acf
commit 08d3185e87
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@ ci:
autoupdate_schedule: monthly autoupdate_schedule: monthly
repos: repos:
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5 rev: v0.1.13
hooks: hooks:
- id: ruff - id: ruff
- id: ruff-format - id: ruff-format

View file

@ -115,7 +115,7 @@ class _AppCtxGlobals:
def after_this_request( def after_this_request(
f: ft.AfterRequestCallable[t.Any] f: ft.AfterRequestCallable[t.Any],
) -> ft.AfterRequestCallable[t.Any]: ) -> ft.AfterRequestCallable[t.Any]:
"""Executes a function after this request. This is useful to modify """Executes a function after this request. This is useful to modify
response objects. The function is passed the response object and has response objects. The function is passed the response object and has

View file

@ -48,7 +48,7 @@ def get_load_dotenv(default: bool = True) -> bool:
def stream_with_context( def stream_with_context(
generator_or_function: t.Iterator[t.AnyStr] | t.Callable[..., t.Iterator[t.AnyStr]] generator_or_function: t.Iterator[t.AnyStr] | t.Callable[..., t.Iterator[t.AnyStr]],
) -> t.Iterator[t.AnyStr]: ) -> t.Iterator[t.AnyStr]:
"""Request contexts disappear when the response is started on the server. """Request contexts disappear when the response is started on the server.
This is done for efficiency reasons and to make it less likely to encounter This is done for efficiency reasons and to make it less likely to encounter