Skip to content

[CodeStyle][Docs] Sync ast-grep and typos versions in codestyle guide#7908

Open
ShigureNyako wants to merge 2 commits into
PaddlePaddle:developfrom
ShigureNyako:codestyle/typos-1.47.0-docs
Open

[CodeStyle][Docs] Sync ast-grep and typos versions in codestyle guide#7908
ShigureNyako wants to merge 2 commits into
PaddlePaddle:developfrom
ShigureNyako:codestyle/typos-1.47.0-docs

Conversation

@ShigureNyako

@ShigureNyako ShigureNyako commented May 31, 2026

Copy link
Copy Markdown
Contributor

同步 PaddlePaddle/Paddle 中代码风格工具版本:

变更:

  • .pre-commit-config.yamltypos-pre-commit-mirrorv1.45.0 升级到 v1.47.0
  • docs/dev_guides/git_guides/codestyle_check_guide_cn.md:同步 typos 工具版本说明到 1.47.0
  • docs/dev_guides/git_guides/codestyle_check_guide_cn.md:同步 ast-grep 工具版本说明到 0.44.0

验证:

  • pre-commit validate-config .pre-commit-config.yaml
  • pre-commit run typos --files .pre-commit-config.yaml docs/dev_guides/git_guides/codestyle_check_guide_cn.md
  • pre-commit run yamlfmt --files .pre-commit-config.yaml
  • git diff --cached --check -- .pre-commit-config.yaml docs/dev_guides/git_guides/codestyle_check_guide_cn.md
  • git diff --check -- docs/dev_guides/git_guides/codestyle_check_guide_cn.md

Co-authored-by: Codex <noreply@openai.com>
@paddle-bot

paddle-bot Bot commented May 31, 2026

Copy link
Copy Markdown

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7908.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@ShigureNyako

Copy link
Copy Markdown
Contributor Author

@SigureMo 麻烦 review。

已自查:本 PR 只同步 PaddlePaddle/Paddle#79193 的 typos 版本,diff 仅包含两处 1.45.0 -> 1.47.0:pre-commit rev 和代码风格指南版本说明。

本地验证已通过:

  • pre-commit validate-config .pre-commit-config.yaml
  • pre-commit run typos --files .pre-commit-config.yaml docs/dev_guides/git_guides/codestyle_check_guide_cn.md
  • pre-commit run yamlfmt --files .pre-commit-config.yaml
  • git diff --cached --check -- .pre-commit-config.yaml docs/dev_guides/git_guides/codestyle_check_guide_cn.md

当前 GitHub Actions 中 Codestyle/Preview job 未启动,annotation 为 The job was not started because your account is locked due to a billing issue.,看起来不是本次变更导致。

@github-actions

Copy link
Copy Markdown
📚 本次 PR 文档预览链接(点击展开)
ℹ️ 预览提醒
请等待 Docs-NEW 流水线运行完成后再点击预览链接,否则可能会看到旧版本内容或遇到链接无法访问的情况。
  • docs/dev_guides/git_guides/codestyle_check_guide_cn.md: 点击预览

@ShigureNyako ShigureNyako changed the title [CodeStyle][Typos] Bump typos to v1.47.0 [CodeStyle][Docs] Sync ast-grep and typos versions in codestyle guide Jun 26, 2026
@ShigureNyako

Copy link
Copy Markdown
Contributor Author

补充同步进展:PaddlePaddle/Paddle#79382 已合入,当前这个 docs PR 已同时同步两项代码风格工具版本:

已追加增量 commit,不涉及 amend/force-push。当前 GitHub Actions 中 Run codestyle check / Generate Preview URLs 均已通过;外部 Docs-NEW 仍显示失败,XLY 详情页面暂未提供可直接从 GitHub 侧定位的日志。此 PR 的代码改动仍仅限 .pre-commit-config.yaml 与代码风格指南版本表。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant