forked from orbit-oss/flask
update dev dependencies
This commit is contained in:
parent
9fcd34c9f3
commit
954f5684e4
3 changed files with 432 additions and 374 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: c60c980e561ed3e73101667fe8365c609d19a438 # frozen: v0.15.9
|
rev: 5e2fb545eba1ea9dc051f6f962d52fe8f76a9794 # frozen: v0.15.13
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-check
|
- id: ruff-check
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||||
rev: 0397b68f6f88c024f1d2b355a9818779f6336d16 # frozen: 0.11.3
|
rev: fa60a193803535a9e2accdb3ca4b1b584b1150cb # frozen: 0.11.15
|
||||||
hooks:
|
hooks:
|
||||||
- id: uv-lock
|
- id: uv-lock
|
||||||
- repo: https://github.com/codespell-project/codespell
|
- repo: https://github.com/codespell-project/codespell
|
||||||
|
|
|
||||||
|
|
@ -468,7 +468,7 @@ _app_option = click.Option(
|
||||||
def _set_debug(ctx: click.Context, param: click.Option, value: bool) -> bool | None:
|
def _set_debug(ctx: click.Context, param: click.Option, value: bool) -> bool | None:
|
||||||
# If the flag isn't provided, it will default to False. Don't use
|
# If the flag isn't provided, it will default to False. Don't use
|
||||||
# that, let debug be set by env in that case.
|
# that, let debug be set by env in that case.
|
||||||
source = ctx.get_parameter_source(param.name) # type: ignore[arg-type]
|
source = ctx.get_parameter_source(param.name)
|
||||||
|
|
||||||
if source is not None and source in (
|
if source is not None and source in (
|
||||||
ParameterSource.DEFAULT,
|
ParameterSource.DEFAULT,
|
||||||
|
|
@ -777,7 +777,7 @@ def show_server_banner(debug: bool, app_import_path: str | None) -> None:
|
||||||
click.echo(f" * Debug mode: {'on' if debug else 'off'}")
|
click.echo(f" * Debug mode: {'on' if debug else 'off'}")
|
||||||
|
|
||||||
|
|
||||||
class CertParamType(click.ParamType):
|
class CertParamType(click.ParamType[str | os.PathLike[str] | ssl.SSLContext]):
|
||||||
"""Click option type for the ``--cert`` option. Allows either an
|
"""Click option type for the ``--cert`` option. Allows either an
|
||||||
existing file, the string ``'adhoc'``, or an import for a
|
existing file, the string ``'adhoc'``, or an import for a
|
||||||
:class:`~ssl.SSLContext` object.
|
:class:`~ssl.SSLContext` object.
|
||||||
|
|
@ -803,7 +803,7 @@ class CertParamType(click.ParamType):
|
||||||
try:
|
try:
|
||||||
return self.path_type(value, param, ctx)
|
return self.path_type(value, param, ctx)
|
||||||
except click.BadParameter:
|
except click.BadParameter:
|
||||||
value = click.STRING(value, param, ctx).lower()
|
value = click.STRING(value, param, ctx).lower() # type: ignore[union-attr]
|
||||||
|
|
||||||
if value == "adhoc":
|
if value == "adhoc":
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue