Skip to content

Commit 8792fb6

Browse files
style: auto-format code with Ruff [skip ci]
1 parent bffc944 commit 8792fb6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test_scripts/test_grouping_fix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
# 验证与 SDK 定义一致
1414
assert OCO_GROUP_NEW_POSITION == "normalTpsl", f"错误: {OCO_GROUP_NEW_POSITION}"
15-
assert (
16-
OCO_GROUP_EXISTING_POSITION == "positionTpsl"
17-
), f"错误: {OCO_GROUP_EXISTING_POSITION}"
15+
assert OCO_GROUP_EXISTING_POSITION == "positionTpsl", (
16+
f"错误: {OCO_GROUP_EXISTING_POSITION}"
17+
)
1818

1919
print("\n✅ 所有常量值正确!")
2020
print("✅ 与 HyperLiquid SDK Grouping 类型定义一致 (小写 's')")

test_scripts/verify_completion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ def check_constants():
1212

1313
# 必须与 HyperLiquid SDK 中的 Grouping 类型定义完全一致(小写 's')
1414
assert OCO_GROUP_NEW_POSITION == "normalTpsl", "新仓位分组常量错误(应为小写s)"
15-
assert (
16-
OCO_GROUP_EXISTING_POSITION == "positionTpsl"
17-
), "现有仓位分组常量错误(应为小写s)"
15+
assert OCO_GROUP_EXISTING_POSITION == "positionTpsl", (
16+
"现有仓位分组常量错误(应为小写s)"
17+
)
1818
assert ADDRESS_PREFIX_LEN == 6, "地址前缀长度常量错误"
1919
print("✅ 常量检查通过")
2020

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)