From 615a19649f73d882af0d3a10dacddc9e89ae9f89 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 20:51:50 +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/rhysd/actionlint: v1.7.9 → v1.7.10](https://github.com/rhysd/actionlint/compare/v1.7.9...v1.7.10) - [github.com/woodruffw/zizmor-pre-commit: v1.18.0 → v1.20.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.18.0...v1.20.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.9 → v0.14.11](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.9...v0.14.11) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c648f71..cb6cb989 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,11 +6,11 @@ repos: - id: check-readthedocs - id: check-github-workflows - repo: https://github.com/rhysd/actionlint - rev: v1.7.9 + rev: v1.7.10 hooks: - id: actionlint - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.18.0 + rev: v1.20.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.11 hooks: - id: ruff args: ["--exit-non-zero-on-fix"] From c2c13d99582a3b22d446e5d0c2b4788bad0c3cc1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 20:51:59 +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(