Skip to content

Commit 5aff760

Browse files
Fix existing issue with UP031
1 parent c08566e commit 5aff760

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: "v0.8.0"
3+
rev: "v0.8.1"
44
hooks:
55
- id: ruff
66
args: ["--fix"]

src/pluggy/_callers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def _raise_wrapfail(
3535
) -> NoReturn:
3636
co = wrap_controller.gi_code
3737
raise RuntimeError(
38-
"wrap_controller at %r %s:%d %s"
39-
% (co.co_name, co.co_filename, co.co_firstlineno, msg)
38+
f"wrap_controller at {co.co_name!r} {co.co_filename}:{co.co_firstlineno} {msg}"
4039
)
4140

4241

0 commit comments

Comments
 (0)