Skip to content

Conversation

@zrr1999
Copy link
Member

@zrr1999 zrr1999 commented Nov 11, 2025

PR Category

Operator Mechanism

PR Types

New features

Description

devPR:#76313

添加 ast-grep 到 pre-commit hook 中,以实现通过 AST 匹配的方式达到更高的检测准确度
在 ast-grep 添加的 rule 只应当是不会有误检的 case,避免开发者遇到无法 commit 的问题,如果有误检的情况,则不可以加到相关 rules 里,仍然需要在 ci/check_approval.sh 里添加,这样可以通过 CI approval 机制达到局部豁免效果,当然后续可以考虑在 check approval 里使用 ast-grep 替代 grep

@paddle-bot
Copy link

paddle-bot bot commented Nov 11, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@zrr1999 zrr1999 merged commit 5fe294d into PaddlePaddle:fleety_12 Nov 11, 2025
111 of 123 checks passed
@zrr1999 zrr1999 deleted the fleety_12_cp/big-tensor branch November 11, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants