diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9009f4..0d3a686 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 diff --git a/tests/test_exception_on_invalid_code.py b/tests/test_exception_on_invalid_code.py index dec3fd1..2df13ef 100644 --- a/tests/test_exception_on_invalid_code.py +++ b/tests/test_exception_on_invalid_code.py @@ -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) @@ -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)