Skip to content

Commit 0c937c0

Browse files
[pre-commit.ci] pre-commit autoupdate (#406)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.13.0](astral-sh/ruff-pre-commit@v0.12.12...v0.13.0) - [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.1](pre-commit/mirrors-mypy@v1.17.1...v1.18.1) * fix linter errs --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Zac Hatfield-Dodds <[email protected]>
1 parent d4c412e commit 0c937c0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ ci:
99

1010
repos:
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.12.12
12+
rev: v0.13.0
1313
hooks:
14-
- id: ruff
14+
- id: ruff-check
1515
args: [--fix]
1616

1717
- repo: https://github.com/psf/black
@@ -38,7 +38,7 @@ repos:
3838
- id: isort
3939

4040
- repo: https://github.com/pre-commit/mirrors-mypy
41-
rev: v1.17.1
41+
rev: v1.18.1
4242
hooks:
4343
- id: mypy
4444
# uses py311 syntax, mypy configured for py39

tests/test_exception_on_invalid_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
def _raises_on_code_cst(source: str):
1212
expression = cst.parse_expression(source)
13-
with pytest.raises(RuntimeError, match="Invalid literal values.*"):
13+
with pytest.raises(RuntimeError, match="Invalid literal values"):
1414
iter_guaranteed_once_cst(expression)
1515

1616

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

3030

0 commit comments

Comments
 (0)