Skip to content

Commit 0edf103

Browse files
committed
fix linter errs
1 parent f9206d1 commit 0edf103

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
1212
rev: v0.13.0
1313
hooks:
14-
- id: ruff
14+
- id: ruff check
1515
args: [--fix]
1616

1717
- repo: https://github.com/psf/black

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)