Skip to content

Commit 84dc7e7

Browse files
committed
fix: formatter issue
1 parent bef6989 commit 84dc7e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

grading_lib/cli/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ def rebase_todo_injector_command(todo_items_file_path, path) -> None:
5959
"""
6060
todo_items_file_path = Path(todo_items_file_path)
6161
if not todo_items_file_path.exists():
62+
# formatter does not correctly format this expression if use in f-string.
63+
cwd = Path(".").absolute()
6264
raise FileNotFoundError(
63-
f"Cannot find '{todo_items_file_path}' in the current working directory (cwd='{Path(".").absolute()}')"
65+
f"Cannot find '{todo_items_file_path}' in the current working directory (cwd='{cwd}')"
6466
)
6567
with open(todo_items_file_path) as in_f:
6668
todo_items_content = in_f.read()

0 commit comments

Comments
 (0)