diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c648f719..83d35a4ef 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"] diff --git a/returns/contrib/mypy/_typeops/transform_callable.py b/returns/contrib/mypy/_typeops/transform_callable.py index 4b41cc022..360a019d7 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 b85c3f60f..49115b2a7 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 11ffe9c7a..5641fd427 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(