已开启
chore: 新增pre-commit-config配置文件 #1
chore: 新增pre-commit-config配置文件 #1
已开启
masiyu创建于 6月22日
10 个文件变更+321-68
M.pre-commit-config.yaml+15-25文件内容审核中,请稍后刷新重试
M.pre-commit-hooks.yaml+74-0文件内容审核中,请稍后刷新重试
Aconfigs/lua/.luacheckrc+22-0文件内容审核中,请稍后刷新重试
@@ -0,0 +1,6 @@
1+column_width = 120
2+indent_type = "Spaces"
3+indent_width = 4
4+quote_style = "ForceSingle"
5+collapse_simple_statement = "Never"
6+line_endings = "Unix"
@@ -14,15 +14,14 @@ reimplemented in Python for cross-platform support.
14 14 
15Usage: add_signoff_and_change_id.py <commit-msg-file>15Usage: add_signoff_and_change_id.py <commit-msg-file>
16"""16"""
17+ 
17import hashlib18import hashlib
18import os19import os
19import re20import re
20import subprocess21import subprocess
21import sys22import sys
22 23 
23-TRAILER_RE = re.compile(24+TRAILER_RE = re.compile(r"^(Co-Authored-By|Signed-off-by|Change-Id|Reviewed-by|Tested-by|Acked-by):")
24- r"^(Co-Authored-By|Signed-off-by|Change-Id|Reviewed-by|Tested-by|Acked-by):"
25-)
26 25 
27 26 
28def _git_config(key: str) -> str:27def _git_config(key: str) -> str:
Mhooks/check_sr.py+12-11文件内容审核中,请稍后刷新重试
@@ -12,6 +12,7 @@ Usage: conventional_commit.py <commit-msg-file> [allowed-type ...]
12 12 
13If no allowed types are specified, all standard types are permitted.13If no allowed types are specified, all standard types are permitted.
14"""14"""
15+ 
15import re16import re
16import sys17import sys
17 18 
Ahooks/lua_custom_lint.py+157-0文件内容审核中,请稍后刷新重试
Mpyproject.toml+3-0文件内容审核中,请稍后刷新重试
Mtests/check_sr_test.py+29-29文件内容审核中,请稍后刷新重试