Skip to content

Commit 5488a05

Browse files
[pre-commit.ci] pre-commit autoupdate (#2322)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/rhysd/actionlint: v1.7.9 → v1.7.10](rhysd/actionlint@v1.7.9...v1.7.10) - [github.com/woodruffw/zizmor-pre-commit: v1.18.0 → v1.22.0](zizmorcore/zizmor-pre-commit@v1.18.0...v1.22.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.9 → v0.14.13](astral-sh/ruff-pre-commit@v0.14.9...v0.14.13) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5742756 commit 5488a05

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ repos:
66
- id: check-readthedocs
77
- id: check-github-workflows
88
- repo: https://github.com/rhysd/actionlint
9-
rev: v1.7.9
9+
rev: v1.7.10
1010
hooks:
1111
- id: actionlint
1212
- repo: https://github.com/woodruffw/zizmor-pre-commit
13-
rev: v1.18.0
13+
rev: v1.22.0
1414
hooks:
1515
- id: zizmor
1616
args: ["--no-progress", "--fix"]
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: pyproject-fmt
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.14.9
26+
rev: v0.14.13
2727
hooks:
2828
- id: ruff
2929
args: ["--exit-non-zero-on-fix"]

returns/contrib/mypy/_typeops/transform_callable.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ def _applied_positional_args(
7474
) -> list[FuncArg]:
7575
callee_args = list(
7676
filter(
77-
lambda name: name.name
78-
is None, # TODO: maybe use `kind` instead?
77+
lambda name: (
78+
name.name is None
79+
), # TODO: maybe use `kind` instead?
7980
applied_args,
8081
)
8182
)

tests/test_contrib/test_hypothesis/test_type_resolution.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ def test_custom_result_error_types_resolve(thing: CustomResult) -> None:
8686

8787
@given(
8888
st.from_type(RequiresContextResultE).filter(
89-
lambda container: not is_successful(
90-
container(RequiresContextResultE.no_args),
89+
lambda container: (
90+
not is_successful(
91+
container(RequiresContextResultE.no_args),
92+
)
9193
),
9294
),
9395
)

tests/test_examples/test_context/test_reader_future_result.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def _fetch_post(
3838
] = RequiresContextFutureResultE.ask()
3939

4040
return (
41-
context.bind_future_result(
41+
context
42+
.bind_future_result(
4243
lambda client: future_safe(client.get)(_URL.format(post_id)),
4344
)
4445
.bind_result(

0 commit comments

Comments
 (0)