diff --git a/scripts/ci/auto_fix_formatting.py b/scripts/ci/auto_fix_formatting.py index bc32c5308..95d573b8c 100755 --- a/scripts/ci/auto_fix_formatting.py +++ b/scripts/ci/auto_fix_formatting.py @@ -332,7 +332,8 @@ def main(): print(f" {line}") # 提交修复 - run("git add -A") + run("git clean -fd") + run("git add -u") run('git commit -m "style: auto-format with black + isort + prettier [skip ci-format-check]"') # 推送(head_branch已从ensure_git_repo获取) @@ -385,4 +386,4 @@ def main(): if __name__ == "__main__": - main() + main() \ No newline at end of file