Merged
fix(hooks): remove duplicate NAME_PATTERN and MAX_NAME_LENGTH redefinitions in agents_linter.py #432
fix(hooks): remove duplicate NAME_PATTERN and MAX_NAME_LENGTH redefinitions in agents_linter.py #432
Merged
liangjinxuan-2026Add on 6 days ago
liangjinxuan-2026
6 days ago

Fixes #234

Summary

Remove duplicate local NAME_PATTERN / MAX_NAME_LENGTH definitions (already imported from _yaml_utils) and the resulting unused import re (ruff F811/F401).

Verification

  • Verified syntax with ast.parse.
  • Verified with ruff check --isolated --select E713,E714: 0 issues.
  • Scope strictly limited to plugins-community/collaborative-agent-kernel-evolution/hooks/agents_linter.py.
likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for liangjinxuan-2026's contribution.)
liangjinxuan-2026liangjinxuan-2026
6 days ago Created pull request, commit efb1a782
liangjinxuan-2026liangjinxuan-2026
6 days ago Associated issue: [Bug]: Duplicate NAME_PATTERN/MAX_NAME_LENGTH redefinition shadowing _yaml_utils import in agents_linter.py
CANN-robotCANN-robotCollaborators
6 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
6 days ago Comments:

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
plugins-community/collaborative-agent-kernel-evolution ✅ 金炯, xutianze (2/2) ✅ 金炯 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

liangjinxuan-2026, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
6 days ago Set qq_37913898,w00934874,dengguojie,jon_jin,rxtfeng,gcw_P2Mh5H1S,songkai111,xutianze,pingchuantang,hanrui22,wangzheng97,hedi0515,benwallace52,linghuis,OpSphere,zihengwang2 as approver
CANN-robotCANN-robotCollaborators
6 days ago Set jon_jin,gcw_P2Mh5H1S as approver
jon_jin
jon_jinCollaborators6 days agoStart code review1
plugins-community/collaborative-agent-kernel-evolution/hooks/agents_linter.py
@@ -11,4 +11,3 @@
1111 
1212import logging
13-import re
1413import sys
jon_jin
jon_jin6 days agoComments:

评审通过(代码层):移除与顶部 _yaml_utils import 遮蔽的本地重复定义 NAME_PATTERN/MAX_NAME_LENGTH(ruff F811;已核对 _yaml_utils 同名常量值逐字一致,语义不变)及未使用的 re 导入。CI 流水线尚未触发,合入前建议评论 /compile 触发确认。

likedislike
liangjinxuan-2026
liangjinxuan-2026
5 days ago Comments:

/compile

likedislike
liangjinxuan-2026liangjinxuan-2026
5 days ago Pre merge succeeded (commit_id: 2904d33806db7ef5025137399e62efc06cdbde52)
CANN-robot
CANN-robotCollaborators
5 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
5 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
5 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
5 days ago Added label: ci-pipeline-passed
jon_jin
jon_jinCollaborators
5 days ago Comments:

复核确认:CI 流水线已绿(ci-pipeline-passed),11-24 评审结论维持——本笔修复代码层通过、无新增发现。感谢触发流水线,后续按票面流程推进。

likedislike
jon_jin
jon_jinCollaborators
5 days ago Comments:

/lgtm

likedislike
jon_jinjon_jinCollaborators
5 days ago Resolved final issue
jon_jin
jon_jinCollaborators
5 days ago Comments:

本笔 CI 已绿(ci-pipeline-passed)、行内评审意见均已闭环,结论维持可投。烦请 @xutianze 抽空复核认可并补票(/lgtm /approve),谢谢。

likedislike
jon_jin
jon_jinCollaborators
5 days ago Comments:

本模块 approve 需域内票:CI 已绿、行内评审结论维持可投。烦请 @gcw_P2Mh5H1S 抽空复核认可并 /approve,谢谢。

likedislike
xutianze
xutianzeCollaborators
5 days ago Comments:

/lgtm
/approve

likedislike
CANN-robot
CANN-robotCollaborators
5 days ago Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: xutianze

likedislike
CANN-robotCANN-robotCollaborators
5 days ago Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
5 days ago Closed associated issue
CANN-robotCANN-robotCollaborators
5 days ago Merged pull request