Pull Request has been successfully merged by CANN-robot.
(Thank you for liuliu876's contribution.)变更摘要
本 PR 将 pre-commit 中的 OAT(Open Source Audit Tool)合规性检查从本地脚本模式切换为远程 hook 模式:在 .pre-commit-config.yaml 中把原来的 local + language: system 的 oat-check hook 替换为引用远程仓库 https://gitcode.com/HiAgent/compliance(rev: v1.0.6)的 Python hook,并删除了自维护的 scripts/oat_check.sh 脚本,从而把检查逻辑与版本维护交给外部仓库管理。
主要改动
- OAT 检查切换为远程 hook:
.pre-commit-config.yaml中oat-check的repo由local改为远程地址https://gitcode.com/HiAgent/compliance,并固定rev: v1.0.6,实现检查逻辑外部化与版本锁定。 - 移除本地执行方式配置: 删除了该 hook 的
name、entry: bash scripts/oat_check.sh、language: system与types: [file]字段,执行入口改由远程 hook 自身提供,保留pass_filenames、stages: [pre-commit]、verbose: true。 - 删除自维护检查脚本: 移除
scripts/oat_check.sh(整文件删除),不再需要在仓库内维护 Python 解释器探测、oat-py安装/升级、文件收集与报告解析等逻辑。
(本次改动仅涉及上述两个文件,未包含文档或测试相关变更。)


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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/asc-devkit | ✅ 诸葛洵, chentianyu19 (2/2) | ✅ 诸葛洵, chentianyu19 (2/1) |
| scripts | ✅ 诸葛洵, chentianyu19 (2/2) | ✅ 诸葛洵 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
liuliu876, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/approve
/lgtm


/lgtm
/approve


描述
关联的Issue
测试
文档更新
类型标签