Compare commits
5 commits
automatic-
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
36e4a824f3 | ||
|
|
954f5684e4 | ||
|
|
9fcd34c9f3 | ||
|
|
1d49747264 | ||
|
|
7374c85dde |
5 changed files with 434 additions and 382 deletions
|
|
@ -1,11 +1,11 @@
|
|||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: c60c980e561ed3e73101667fe8365c609d19a438 # frozen: v0.15.9
|
||||
rev: 5e2fb545eba1ea9dc051f6f962d52fe8f76a9794 # frozen: v0.15.13
|
||||
hooks:
|
||||
- id: ruff-check
|
||||
- id: ruff-format
|
||||
- repo: https://github.com/astral-sh/uv-pre-commit
|
||||
rev: 0397b68f6f88c024f1d2b355a9818779f6336d16 # frozen: 0.11.3
|
||||
rev: fa60a193803535a9e2accdb3ca4b1b584b1150cb # frozen: 0.11.15
|
||||
hooks:
|
||||
- id: uv-lock
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
|
|
|
|||
|
|
@ -10,8 +10,7 @@ A running MongoDB server and `Flask-MongoEngine`_ are required. ::
|
|||
pip install flask-mongoengine
|
||||
|
||||
.. _MongoEngine: http://mongoengine.org
|
||||
.. _Flask-MongoEngine: https://flask-mongoengine.readthedocs.io
|
||||
|
||||
.. _Flask-MongoEngine: https://docs.mongoengine.org/projects/flask-mongoengine/en/latest/
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
|
|
|||
|
|
@ -81,8 +81,7 @@ By the end, your project layout will look like this:
|
|||
│ ├── test_auth.py
|
||||
│ └── test_blog.py
|
||||
├── .venv/
|
||||
├── pyproject.toml
|
||||
└── MANIFEST.in
|
||||
└── pyproject.toml
|
||||
|
||||
If you're using version control, the following files that are generated
|
||||
while running your project should be ignored. There may be other files
|
||||
|
|
@ -103,8 +102,4 @@ write. For example, with git:
|
|||
.coverage
|
||||
htmlcov/
|
||||
|
||||
dist/
|
||||
build/
|
||||
*.egg-info/
|
||||
|
||||
Continue to :doc:`factory`.
|
||||
|
|
|
|||
|
|
@ -468,7 +468,7 @@ _app_option = click.Option(
|
|||
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
|
||||
# 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 (
|
||||
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'}")
|
||||
|
||||
|
||||
class CertParamType(click.ParamType):
|
||||
class CertParamType(click.ParamType[t.Any]):
|
||||
"""Click option type for the ``--cert`` option. Allows either an
|
||||
existing file, the string ``'adhoc'``, or an import for a
|
||||
:class:`~ssl.SSLContext` object.
|
||||
|
|
@ -803,7 +803,7 @@ class CertParamType(click.ParamType):
|
|||
try:
|
||||
return self.path_type(value, param, ctx)
|
||||
except click.BadParameter:
|
||||
value = click.STRING(value, param, ctx).lower()
|
||||
value = click.STRING(value, param, ctx).lower() # type: ignore[union-attr]
|
||||
|
||||
if value == "adhoc":
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue