-
Notifications
You must be signed in to change notification settings - Fork 750
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 Lucas-C/pre-commit-hooks
in .pre-commit-config.yaml
#6240
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,16 @@ repos: | |
- id: trailing-whitespace | ||
files: \.md$|\.rst$ | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.1.14 | ||
rev: v1.5.1 | ||
hooks: | ||
- id: forbid-crlf | ||
files: \.md$|\.rst$ | ||
types: [text] | ||
- id: remove-crlf | ||
files: \.md$|\.rst$ | ||
types: [text] | ||
- id: forbid-tabs | ||
files: \.md$|\.rst$ | ||
types: [text] | ||
- id: remove-tabs | ||
files: \.md$|\.rst$ | ||
types: [text] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 两个 forbid 可以删掉,因为和 remove 重复了,可以参考 Paddle 那边的,同样,下面的 check-whitespace-between-cn-and-en-char 之后也可以删掉,因为 insert-whitespace-between-cn-and-en-char 会既检查又修复 |
||
- repo: https://github.com/ShigureLab/dochooks | ||
rev: v0.3.0 | ||
hooks: | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -32,10 +32,10 @@ if [ -f ${FLUIDDOCDIR}/ci_scripts/hooks/pre-doc-compile.sh ] ; then | |||||||||||||||||
fi | ||||||||||||||||||
|
||||||||||||||||||
thread=2 | ||||||||||||||||||
tmp_fifofile=/tmp/$$.fifo #脚本运行的当前进程ID号作为文件名 | ||||||||||||||||||
mkfifo $tmp_fifofile #新建一个随机fifo管道文件 | ||||||||||||||||||
exec 6<>$tmp_fifofile #定义文件描述符6指向这个fifo管道文件 | ||||||||||||||||||
rm $tmp_fifofile #清空管道内容 | ||||||||||||||||||
tmp_fifofile=/tmp/$$.fifo #脚本运行的当前进程ID号作为文件名 | ||||||||||||||||||
mkfifo $tmp_fifofile #新建一个随机fifo管道文件 | ||||||||||||||||||
exec 6<>$tmp_fifofile #定义文件描述符6指向这个fifo管道文件 | ||||||||||||||||||
rm $tmp_fifofile #清空管道内容 | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
|
||||||||||||||||||
# for循环 往 fifo管道文件中写入$thread个空行 | ||||||||||||||||||
for ((i=0;i<$thread;i++));do | ||||||||||||||||||
|
@@ -68,8 +68,8 @@ for lang in en zh ; do | |||||||||||||||||
} & | ||||||||||||||||||
done | ||||||||||||||||||
|
||||||||||||||||||
wait #等到后台的进程都执行完毕 | ||||||||||||||||||
exec 6>&- ##删除文件描述符6 | ||||||||||||||||||
wait #等到后台的进程都执行完毕 | ||||||||||||||||||
exec 6>&- ##删除文件描述符6 | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
|
||||||||||||||||||
if [ -f ${FLUIDDOCDIR}/ci_scripts/hooks/post-doc-compile.sh ] ; then | ||||||||||||||||||
${FLUIDDOCDIR}/ci_scripts/hooks/post-doc-compile.sh ${OUTPUTDIR} ${VERSIONSTR} | ||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改成这样吧,下同