forked from orbit-oss/flask
update pre-commit hooks
This commit is contained in:
parent
6000e80acf
commit
08d3185e87
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue