From 61141bac49c662f1ba64ddcbeaa05448bcb063dc Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 17:12:54 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.4.9 → v0.14.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.4.9...v0.14.4) - [github.com/jackdewinter/pymarkdown: v0.9.20 → v0.9.33](https://github.com/jackdewinter/pymarkdown/compare/v0.9.20...v0.9.33) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.18.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.18.2) - [github.com/python-poetry/poetry: 1.8.0 → 2.2.1](https://github.com/python-poetry/poetry/compare/1.8.0...2.2.1) - [github.com/python-poetry/poetry-plugin-export: 1.8.0 → 1.9.0](https://github.com/python-poetry/poetry-plugin-export/compare/1.8.0...1.9.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e41e6e8..abc90e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks [dependabot skip]" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-yaml args: [--unsafe] @@ -12,7 +12,7 @@ repos: - id: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.9 + rev: v0.14.4 hooks: - id: ruff name: "lint with ruff" @@ -20,7 +20,7 @@ repos: name: "format with ruff" - repo: https://github.com/jackdewinter/pymarkdown - rev: v0.9.20 + rev: v0.9.33 hooks: - id: pymarkdown name: "check markdown" @@ -28,7 +28,7 @@ repos: args: [scan] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.10.0" # Use the sha / tag you want to point at + rev: "v1.18.2" # Use the sha / tag you want to point at hooks: - id: mypy name: "Check with Mypy" @@ -39,14 +39,14 @@ repos: - "types-tzlocal" - repo: https://github.com/python-poetry/poetry - rev: "1.8.0" + rev: "2.2.1" hooks: - id: poetry-check name: "check poetry files" # - id: poetry-lock - repo: https://github.com/python-poetry/poetry-plugin-export - rev: "1.8.0" + rev: "1.9.0" hooks: - id: poetry-export name: "export production dependencies" From 724a4538560c9d824c3583c6c157d4f48bb561f4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 17:15:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks [dependabot skip] --- requirements-dev.txt | 6 +++--- requirements.txt | 2 +- tests/live_test.py | 6 +++--- tests/main.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index b9b89c0..d083a68 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -34,7 +34,7 @@ httptools==0.6.1 ; python_version >= "3.9" and python_version < "4.0" httpx==0.27.0 ; python_version >= "3.9" and python_version < "4.0" identify==2.5.36 ; python_version >= "3.9" and python_version < "4.0" idna==3.7 ; python_version >= "3.9" and python_version < "4.0" -importlib-metadata==7.2.0 ; python_version >= "3.9" and python_version < "3.10" +importlib-metadata==7.2.0 ; python_version == "3.9" iniconfig==2.0.0 ; python_version >= "3.9" and python_version < "4.0" itsdangerous==2.2.0 ; python_version >= "3.9" and python_version < "4.0" jinja2==3.1.4 ; python_version >= "3.9" and python_version < "4.0" @@ -124,11 +124,11 @@ tzlocal==5.2 ; python_version >= "3.9" and python_version < "4.0" ujson==5.10.0 ; python_version >= "3.9" and python_version < "4.0" urllib3==2.2.2 ; python_version >= "3.9" and python_version < "4.0" uvicorn[standard]==0.30.1 ; python_version >= "3.9" and python_version < "4.0" -uvloop==0.19.0 ; (sys_platform != "win32" and sys_platform != "cygwin") and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "4.0" +uvloop==0.19.0 ; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "4.0" virtualenv==20.26.2 ; python_version >= "3.9" and python_version < "4.0" watchdog==4.0.1 ; python_version >= "3.9" and python_version < "4.0" watchfiles==0.22.0 ; python_version >= "3.9" and python_version < "4.0" wcwidth==0.2.13 ; python_version >= "3.9" and python_version < "4.0" websockets==12.0 ; python_version >= "3.9" and python_version < "4.0" wrapt==1.16.0 ; python_version >= "3.9" and python_version < "4.0" -zipp==3.19.2 ; python_version >= "3.9" and python_version < "3.10" +zipp==3.19.2 ; python_version == "3.9" diff --git a/requirements.txt b/requirements.txt index dbccefb..ad2b4a1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -39,6 +39,6 @@ tzdata==2024.1 ; python_version >= "3.9" and python_version < "4.0" and platform tzlocal==5.2 ; python_version >= "3.9" and python_version < "4.0" ujson==5.10.0 ; python_version >= "3.9" and python_version < "4.0" uvicorn[standard]==0.30.1 ; python_version >= "3.9" and python_version < "4.0" -uvloop==0.19.0 ; (sys_platform != "win32" and sys_platform != "cygwin") and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "4.0" +uvloop==0.19.0 ; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "4.0" watchfiles==0.22.0 ; python_version >= "3.9" and python_version < "4.0" websockets==12.0 ; python_version >= "3.9" and python_version < "4.0" diff --git a/tests/live_test.py b/tests/live_test.py index 357f380..5256a8f 100644 --- a/tests/live_test.py +++ b/tests/live_test.py @@ -61,9 +61,9 @@ async def cache_expires() -> dict[str, Union[bool, str]]: @app.get("/cache_json_encoder") @cache(tag="test_tag_1") -def cache_json_encoder() -> ( - dict[str, Union[bool, str, datetime, date, Decimal]] -): +def cache_json_encoder() -> dict[ + str, Union[bool, str, datetime, date, Decimal] +]: """Route that returns a dictionary with different data types. This has the default cache time of 1 year. diff --git a/tests/main.py b/tests/main.py index 4f18b4f..a9d66c2 100644 --- a/tests/main.py +++ b/tests/main.py @@ -33,9 +33,9 @@ async def cache_expires() -> dict[str, Union[bool, str]]: @app.get("/cache_json_encoder") @cache() -def cache_json_encoder() -> ( - dict[str, Union[bool, str, datetime, date, Decimal]] -): +def cache_json_encoder() -> dict[ + str, Union[bool, str, datetime, date, Decimal] +]: """Route that returns a dictionary with different data types.""" return { "success": True,