diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d56c3451..d980c04f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: files: "^(?!examples/)" args: ["--application-directories", "src"] - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 diff --git a/docs/patterns/appfactories.rst b/docs/patterns/appfactories.rst index 415c10fa..a76e676f 100644 --- a/docs/patterns/appfactories.rst +++ b/docs/patterns/appfactories.rst @@ -91,7 +91,7 @@ To run such an application, you can use the :command:`flask` command: .. code-block:: text - $ flask run --app hello run + $ flask --app hello run Flask will automatically detect the factory if it is named ``create_app`` or ``make_app`` in ``hello``. You can also pass arguments @@ -99,7 +99,7 @@ to the factory like this: .. code-block:: text - $ flask run --app hello:create_app(local_auth=True)`` + $ flask --app hello:create_app(local_auth=True) run`` Then the ``create_app`` factory in ``myapp`` is called with the keyword argument ``local_auth=True``. See :doc:`/cli` for more detail. diff --git a/tests/test_reqctx.py b/tests/test_reqctx.py index abfacb98..6c38b661 100644 --- a/tests/test_reqctx.py +++ b/tests/test_reqctx.py @@ -227,7 +227,6 @@ def test_session_error_pops_context(): def test_session_dynamic_cookie_name(): - # This session interface will use a cookie with a different name if the # requested url ends with the string "dynamic_cookie" class PathAwareSessionInterface(SecureCookieSessionInterface):