已合并
feat: pre-commit & update clang-fmt #1377
maohp_hw创建于 4月1日
feat: pre-commit & update clang-fmt #1377
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 maohp_hw 的贡献)CANN-robot
4月1日 评论:
4月1日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| impl/c_api | ✅ bianque, xun_zhuge, pangfd (3/2) | ✅ pangfd (1/1) |
| impl/experimental/tensor_api | ✅ pangfd, bianque, xun_zhuge (3/2) | ✅ pangfd (1/1) |
| include/c_api | ✅ wuzhaolin, bianque, xun_zhuge (3/2) | ✅ wuzhaolin (1/1) |
| repo-cann/asc-devkit | ✅ bianque, ookkkkoo1122, xun_zhuge (3/2) | ✅ ookkkkoo1122, xun_zhuge (2/1) |
| scripts | ✅ xun_zhuge, bianque (2/2) | ✅ xun_zhuge (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
haipingmao, thanks for your pull request. All authors of the commits have signed the CLA. 👍


4月1日 将zengjuan,zhanghao_0689,yanqingshang,wulinyu,zhuliangying,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,wqtshg_wt,yangbinhua,gao_dafa,chenyiyuan,xun_zhuge,ookkkkoo1122,bianque,houyuyang,shi_nanxiang,wuyang_hw,ascendhjh,DragonBornHD84,jiangZD设为评审人
4月1日 将zengjuan,zhanghao_0689,yanqingshang,wulinyu,zhuliangying,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,wqtshg_wt,yangbinhua,gao_dafa,chenyiyuan,xun_zhuge,ookkkkoo1122,bianque,houyuyang,shi_nanxiang,wuyang_hw,ascendhjh,DragonBornHD84,jiangZD设为评审人
4月1日 添加了label:cann-cla/yes
4月1日 将zengjuan,zhanghao_0689,yanqingshang,wulinyu,zhuliangying,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,wqtshg_wt,yangbinhua,gao_dafa,chenyiyuan,xun_zhuge,ookkkkoo1122,bianque,houyuyang,shi_nanxiang,wuyang_hw,ascendhjh,DragonBornHD84,jiangZD设为审查人
4月1日 将zengjuan,zhanghao_0689,yanqingshang,wulinyu,zhuliangying,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,wqtshg_wt,yangbinhua,gao_dafa,chenyiyuan,xun_zhuge,ookkkkoo1122,bianque,houyuyang,shi_nanxiang,wuyang_hw,ascendhjh,DragonBornHD84,jiangZD设为审查人
此处折叠了109条消息 查看更多
4月2日 添加了label:lgtm
4月2日 添加了label:approved
CANN-robot
4月2日 评论:
4月2日 评论:
Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: pangfd, wuzhaolin, xun_zhuge, ookkkkoo1122.
Reviewers who wrote a comment of /lgtm are: xun_zhuge, pangfd, bianque, wuzhaolin, ookkkkoo1122.


4月2日 合入了pull request
描述
为项目添加pre-commit钩子配置,在代码提交前自动执行代码格式化和合规性检查,提升代码质量和合规性。
实现
.pre-commit-config.yaml配置文件,集成clang-format和OAT检查.clang-format配置,基于Google风格优化代码格式规则scripts/oat_check.sh脚本,实现OAT合规性检查功能具体变更
使用方式
git add . git commit -m "your message"关联的Issue
关联的Issue #387
测试
文档更新
NA
类型标签