Skip to content

Commit 37491b6

Browse files
committed
build: 配置项目使用 Black 格式化工具
- 在 .idea/misc.xml 中添加 Black 组件配置,启用格式化功能 - 在 .vscode/settings.json 中为 Python 文件配置 Black 为默认格式化工具,并开启保存时格式化
1 parent 637ef92 commit 37491b6

File tree

4 files changed

+206
-114
lines changed

4 files changed

+206
-114
lines changed

.idea/misc.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
"pyproject.toml": "pdm.lock, .editorconfig, .markdownlint.json",
55
"vcf_generator_lite.spec": "setup.iss, metadata.yml, versionfile.txt, os_notices.*",
66
"*": "${basename}.*.${extname}",
7-
}
7+
},
8+
"[python]": {
9+
"editor.defaultFormatter": "ms-python.black-formatter",
10+
"editor.formatOnSave": true
11+
},
812
}

0 commit comments

Comments
 (0)