Skip to content

Conversation

SigureMo
Copy link
Member

@SigureMo SigureMo commented Sep 30, 2025

  • 升级 dochook 到 v0.6.0,添加 check-case-conflict hook,用于检查新增文件是否与之前文件会在大小写不敏感操作系统上存在冲突,比如 /a/b/c.ext/a/b/C.ext,推荐将后者改为 /a/b/C__upper.ext,因为 macOS 默认文件系统 APFS 和 Windows 默认文件系统 NTFS 都有这个问题,因此这个检查非常有必要
  • 顺带引入 yamlfmt 用于格式化 pre-commit-config 和一些其他 yaml 文件
  • 添加 .editorconfig

Copy link

paddle-bot bot commented Sep 30, 2025

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

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds yamlfmt for YAML formatting and a case conflict checker to prevent filesystem conflicts on case-insensitive systems like macOS and Windows.

  • Updates dochooks to v0.6.0 and adds check-case-conflict hook
  • Introduces yamlfmt for YAML file formatting
  • Adds .editorconfig for consistent code style across editors

Reviewed Changes

Copilot reviewed 3 out of 8 changed files in this pull request and generated no comments.

File Description
.yamlfmt Configuration file for yamlfmt YAML formatter
.pre-commit-config.yaml Updates dochooks version, adds case conflict checker and yamlfmt hook
.editorconfig Adds editor configuration for consistent formatting across different file types

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@SigureMo SigureMo merged commit 8f0f08b into develop Oct 1, 2025
2 checks passed
@SigureMo SigureMo deleted the add-yamlfmt-hook-and-check-case-conflict-hook branch October 1, 2025 02:57
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