From 9b2d58159c70b46214d0ef961168bbc826651663 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Sat, 16 May 2026 22:55:42 -0500 Subject: [PATCH] fix(cli): satisfy ruff encoding requirement in send_cmd Specify utf-8 when reading message bodies from --file paths so the full-repo ruff enforcement check passes in CI. --- hermes_cli/send_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes_cli/send_cmd.py b/hermes_cli/send_cmd.py index 451bb3b4964..2d0c3418ea2 100644 --- a/hermes_cli/send_cmd.py +++ b/hermes_cli/send_cmd.py @@ -58,7 +58,7 @@ def _read_message_body( if file_path == "-": return sys.stdin.read() try: - return Path(file_path).read_text() + return Path(file_path).read_text(encoding="utf-8") except OSError as exc: print(f"hermes send: cannot read {file_path}: {exc}", file=sys.stderr) sys.exit(_USAGE_EXIT)