Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeStyle] upgrade pre-commit/pre-commit-hooks in .pre-commit-config.yaml #6239

Merged

Conversation

ooooo-create
Copy link
Collaborator

link #6158
升级 docs repo 中现有的代码风格检查工具版本

  • pre-commit/pre-commit-hooks

tracking issue 待补充
@SigureMo

@paddle-bot
Copy link

paddle-bot bot commented Oct 22, 2023

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

@@ -5,7 +5,7 @@ repos:
- id: black
files: \.py$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.4.0
Copy link
Member

Choose a reason for hiding this comment

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

end-of-file-fixertrailing-whitespace 的 files 字段改成 types 吧,监控全部文本文件,即

     -   id: end-of-file-fixer
-        files: \.md$|\.rst$
+        types: [text]

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow 🐾

@SigureMo SigureMo added the HappyOpenSource 快乐开源活动issue与PR label Oct 22, 2023
@SigureMo
Copy link
Member

需要解决下冲突~

Copy link
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow 🐾

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM

@SigureMo SigureMo merged commit c85892a into PaddlePaddle:develop Oct 23, 2023
3 checks passed
@ooooo-create ooooo-create deleted the pre-commit/pre-commit-hooks branch October 25, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants