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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.12
rev: v0.13.0
hooks:
- id: ruff
- id: ruff-check
args: [--fix]

- repo: https://github.com/psf/black
Expand All @@ -38,7 +38,7 @@ repos:
- id: isort

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.17.1
rev: v1.18.1
hooks:
- id: mypy
# uses py311 syntax, mypy configured for py39
Expand Down
4 changes: 2 additions & 2 deletions tests/test_exception_on_invalid_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def _raises_on_code_cst(source: str):
expression = cst.parse_expression(source)
with pytest.raises(RuntimeError, match="Invalid literal values.*"):
with pytest.raises(RuntimeError, match="Invalid literal values"):
iter_guaranteed_once_cst(expression)


Expand All @@ -24,7 +24,7 @@ def _raises_on_code_ast(source: str):
assert isinstance(expression, ast.Expr)
call = expression.value
assert isinstance(call, ast.Call)
with pytest.raises(RuntimeError, match="Invalid literal values.*"):
with pytest.raises(RuntimeError, match="Invalid literal values"):
iter_guaranteed_once(call)


Expand Down
Loading