Skip to content

Commit a982b18

Browse files
style: 清空仅含编码声明的 __init__.py 并补尾随逗号
- fix-encoding-pragma 钩子会把只含 coding pragma 的文件截断为空,__init__.py 恢复为空文件(pre-commit-hooks v4.3.0 特殊分支) - add-trailing-comma 钩子要求 AsyncMock 调用补尾随逗号
1 parent a6a092f commit a982b18

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎tests/__init__.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-

‎tests/unit/__init__.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
# -*- coding: utf-8 -*-

‎tests/unit/test_opd.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ async def test_opd_example_uploads_local_datasets(rl_client):
168168
with patch(
169169
"dashscope.finetune.reinforcement.common.model.to_bailian_data",
170170
new=AsyncMock(
171-
side_effect=[["file-train-001"], ["file-validation-001"]]
171+
side_effect=[["file-train-001"], ["file-validation-001"]],
172172
),
173173
):
174174
train_ids, validation_ids = await rl_client.upload_datasets()

0 commit comments

Comments
 (0)