File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1010
1111def _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
You can’t perform that action at this time.
0 commit comments