Skip to content

Commit d0ce32b

Browse files
fix: update template
1 parent c7eefac commit d0ce32b

File tree

1 file changed

+15
-36
lines changed
  • repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}

1 file changed

+15
-36
lines changed
Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,25 @@
1+
doublestar: true
12
yaml_files:
23
- "**/*.yaml"
34
- "**/*.yml"
45
- ".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
1320
# 行长度限制
14-
1521
line_length: 100
1622
# 缩进大小
17-
1823
indentation: 2
1924
# 是否保留引号
20-
2125
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

0 commit comments

Comments
 (0)