From ab5016c256c6db1b3d8cb07a07e23511b70e26b1 Mon Sep 17 00:00:00 2001 From: banteg <4562643+banteg@users.noreply.github.com> Date: Thu, 1 Jan 2026 02:34:58 +0400 Subject: [PATCH] refactor: keep file change verbs raw --- src/takopi/render.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/takopi/render.py b/src/takopi/render.py index fb52a63..28d8a36 100644 --- a/src/takopi/render.py +++ b/src/takopi/render.py @@ -19,8 +19,6 @@ HARD_BREAK = " \n" MAX_PROGRESS_CMD_LEN = 300 MAX_FILE_CHANGES_INLINE = 3 -FILE_CHANGE_VERB = {"add": "added", "delete": "deleted", "update": "updated"} - def format_changed_file_path(path: str, *, base_dir: Path | None = None) -> str: raw = path.strip() @@ -104,11 +102,7 @@ def format_file_change_title(action: Action, *, command_width: int | None) -> st if not isinstance(path, str) or not path: continue kind = raw.get("kind") - verb = ( - FILE_CHANGE_VERB.get(kind, "updated") - if isinstance(kind, str) - else "updated" - ) + verb = kind if isinstance(kind, str) and kind else "update" rendered.append(f"{verb} {format_changed_file_path(path)}") if rendered: