From 526526bfdd4832fee6819fb5e01072b456145f49 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 20:40:28 +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/woodruffw/zizmor-pre-commit: v1.18.0 → v1.19.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.18.0...v1.19.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.9 → v0.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.9...v0.14.10) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c648f71..83d35a4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: hooks: - id: actionlint - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.18.0 + rev: v1.19.0 hooks: - id: zizmor args: ["--no-progress", "--fix"] @@ -23,7 +23,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.9 + rev: v0.14.10 hooks: - id: ruff args: ["--exit-non-zero-on-fix"] From 88be24fb5c59723e0414105793f7ee25410e15e0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 20:40:38 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- returns/contrib/mypy/_typeops/transform_callable.py | 5 +++-- tests/test_contrib/test_hypothesis/test_type_resolution.py | 6 ++++-- .../test_examples/test_context/test_reader_future_result.py | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/returns/contrib/mypy/_typeops/transform_callable.py b/returns/contrib/mypy/_typeops/transform_callable.py index 4b41cc02..360a019d 100644 --- a/returns/contrib/mypy/_typeops/transform_callable.py +++ b/returns/contrib/mypy/_typeops/transform_callable.py @@ -74,8 +74,9 @@ def _applied_positional_args( ) -> list[FuncArg]: callee_args = list( filter( - lambda name: name.name - is None, # TODO: maybe use `kind` instead? + lambda name: ( + name.name is None + ), # TODO: maybe use `kind` instead? applied_args, ) ) diff --git a/tests/test_contrib/test_hypothesis/test_type_resolution.py b/tests/test_contrib/test_hypothesis/test_type_resolution.py index b85c3f60..49115b2a 100644 --- a/tests/test_contrib/test_hypothesis/test_type_resolution.py +++ b/tests/test_contrib/test_hypothesis/test_type_resolution.py @@ -86,8 +86,10 @@ def test_custom_result_error_types_resolve(thing: CustomResult) -> None: @given( st.from_type(RequiresContextResultE).filter( - lambda container: not is_successful( - container(RequiresContextResultE.no_args), + lambda container: ( + not is_successful( + container(RequiresContextResultE.no_args), + ) ), ), ) diff --git a/tests/test_examples/test_context/test_reader_future_result.py b/tests/test_examples/test_context/test_reader_future_result.py index 11ffe9c7..5641fd42 100644 --- a/tests/test_examples/test_context/test_reader_future_result.py +++ b/tests/test_examples/test_context/test_reader_future_result.py @@ -38,7 +38,8 @@ def _fetch_post( ] = RequiresContextFutureResultE.ask() return ( - context.bind_future_result( + context + .bind_future_result( lambda client: future_safe(client.get)(_URL.format(post_id)), ) .bind_result(