From 27a8ab1c7630ac19f21233a002e58640cc0a324c Mon Sep 17 00:00:00 2001 From: Justin Gu <97915@qq.com> Date: Tue, 7 Jul 2026 15:27:20 +0800 Subject: [PATCH] =?UTF-8?q?style:=20ruff=20format=20security=5Fbars.py?= =?UTF-8?q?=EF=BC=88=E4=BF=AE=E5=A4=8D=20ci.yml=20format=20=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 合并 e3e8dd4 时采用远程版本,但其 _log.warning 字符串换行未跑 ruff format,导致 ci.yml 的 format 检查失败。纯格式调整,无逻辑变化。 --- src/easy_tdx/commands/security_bars.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/easy_tdx/commands/security_bars.py b/src/easy_tdx/commands/security_bars.py index 8f73c7b..0bd62e3 100644 --- a/src/easy_tdx/commands/security_bars.py +++ b/src/easy_tdx/commands/security_bars.py @@ -85,8 +85,7 @@ class GetSecurityBarsCmd(BaseCommand[list[SecurityBar]]): # 成功解析的前若干条,避免一条坏数据让整页 500。 if bars: _log.warning( - "K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录," - "返回前 %d 条", + "K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,返回前 %d 条", i + 1, ret_count, e, @@ -154,8 +153,7 @@ class GetIndexBarsCmd(GetSecurityBarsCmd): except TdxDecodeError as e: if bars: _log.warning( - "指数K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录," - "返回前 %d 条", + "指数K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,返回前 %d 条", i + 1, ret_count, e,