File tree Expand file tree Collapse file tree 1 file changed +15
-36
lines changed
repo_scaffold/templates/template-python/{{cookiecutter.project_slug}} Expand file tree Collapse file tree 1 file changed +15
-36
lines changed Original file line number Diff line number Diff line change
1
+ doublestar : true
1
2
yaml_files :
2
3
- " **/*.yaml"
3
4
- " **/*.yml"
4
5
- " .yamlfmt"
5
- - " !**/vendor/**"
6
- - " !**/node_modules/**"
7
- yaml_options :
8
- # 文档末尾是否需要一个空行
9
- end_of_document : true
10
- # 配置文档分隔符
11
-
12
- document_start : false
6
+ exclude :
7
+ - " **/vendor/**"
8
+ - " **/node_modules/**"
9
+ - " repo_scaffold/templates/**"
10
+ formatter :
11
+ type : basic
12
+ # 控制换行符保留 - 设为 false 可能减少不必要的空行
13
+ retain_line_breaks : false
14
+ # 只保留单个换行符,移除多余的空行
15
+ retain_line_breaks_single : true
16
+ # 注释前的空格数
17
+ pad_line_comments : 2
18
+ # 去除行尾空白字符
19
+ trim_trailing_whitespace : true
13
20
# 行长度限制
14
-
15
21
line_length : 100
16
22
# 缩进大小
17
-
18
23
indentation : 2
19
24
# 是否保留引号
20
-
21
25
preserve_quotes : true
22
- # 对齐方式
23
-
24
- alignment :
25
- # 是否启用键值对齐
26
- enable : true
27
- # 键和冒号之间的最小间隔
28
-
29
- key_value : 1
30
- # 对齐后冒号和值之间的空格数
31
-
32
- colon_value : 1
33
- # 数组格式化
34
-
35
- array :
36
- # 嵌套数组是否应该与父级对齐
37
- indent_nested : true
38
- # 数组项与前导符号 - 之间的空格数
39
-
40
- item_spacing : 1
41
- # 是否移除文档注释
42
-
43
- strip_comments : false
44
- # 是否保留文件开头的注释
45
-
46
- preserve_header : true
You can’t perform that action at this time.
0 commit comments