Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.8
rev: v0.15.9
hooks:
- id: ruff-check
args: [--fix]
Expand Down Expand Up @@ -39,7 +39,7 @@ repos:
- id: isort

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
rev: v1.20.0
hooks:
- id: mypy
# uses py311 syntax, mypy configured for py310
Expand Down
8 changes: 4 additions & 4 deletions tests/autofix_files/async91x_autofix.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def match_subject() -> None:
async def match_not_all_cases() -> ( # ASYNC910: 0, "exit", Statement("function definition", lineno)
None
):
match foo():
match bar():
case 1:
...
case _:
Expand Down Expand Up @@ -203,7 +203,7 @@ async def match_all_cases() -> None:
async def match_fallback_await_in_guard() -> None:
# The case guard is only executed if the pattern matches, so we can mostly treat
# it as part of the body, except for a special case for fallback+checkpointing guard.
match foo():
match bar():
case 1 if await foo():
...
case _ if await foo():
Expand All @@ -212,7 +212,7 @@ async def match_fallback_await_in_guard() -> None:

async def match_checkpoint_guard() -> None:
# The above pattern is quite cursed, but this seems fairly reasonable to do.
match foo():
match bar():
case 1 if await foo():
...
case _:
Expand All @@ -222,7 +222,7 @@ async def match_checkpoint_guard() -> None:
async def match_not_checkpoint_in_all_guards() -> ( # ASYNC910: 0, "exit", Statement("function definition", lineno)
None
):
match foo():
match bar():
case 1:
...
case _ if await foo():
Expand Down
8 changes: 4 additions & 4 deletions tests/eval_files/async91x_autofix.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def match_subject() -> None:
async def match_not_all_cases() -> ( # ASYNC910: 0, "exit", Statement("function definition", lineno)
None
):
match foo():
match bar():
case 1:
...
case _:
Expand Down Expand Up @@ -184,7 +184,7 @@ async def match_all_cases() -> None:
async def match_fallback_await_in_guard() -> None:
# The case guard is only executed if the pattern matches, so we can mostly treat
# it as part of the body, except for a special case for fallback+checkpointing guard.
match foo():
match bar():
case 1 if await foo():
...
case _ if await foo():
Expand All @@ -193,7 +193,7 @@ async def match_fallback_await_in_guard() -> None:

async def match_checkpoint_guard() -> None:
# The above pattern is quite cursed, but this seems fairly reasonable to do.
match foo():
match bar():
case 1 if await foo():
...
case _:
Expand All @@ -203,7 +203,7 @@ async def match_checkpoint_guard() -> None:
async def match_not_checkpoint_in_all_guards() -> ( # ASYNC910: 0, "exit", Statement("function definition", lineno)
None
):
match foo():
match bar():
case 1:
...
case _ if await foo():
Expand Down
Loading