🎨 style(markdown): format all markdown files with prettier
- 使用 prettier 格式化所有 markdown 文件 - prose-wrap: always, print-width: 80 - 保持代码块和表格格式 - 提升可读性和一致性 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
本文件用于把 Python 工具配置“汇总说明”到一个可读入口。
|
||||
|
||||
注意:本 Playbook 将可复制模板放在 `templates/python/`;在目标项目落地时,这些文件通常需要复制到**项目根目录**(工具默认查找位置):
|
||||
注意:本 Playbook 将可复制模板放在
|
||||
`templates/python/`;在目标项目落地时,这些文件通常需要复制到**项目根目录**(工具默认查找位置):
|
||||
|
||||
- `pyproject.toml`
|
||||
- `.flake8`
|
||||
@@ -42,7 +43,8 @@
|
||||
|
||||
- 命名风格:snake_case / PascalCase 等(对齐 Google Python 风格)
|
||||
- `max-line-length = 80`
|
||||
- `init-hook` 将项目根目录加入 `sys.path`(便于本地运行与检查;如项目不需要可移除)
|
||||
- `init-hook` 将项目根目录加入
|
||||
`sys.path`(便于本地运行与检查;如项目不需要可移除)
|
||||
|
||||
## 4) `.pre-commit-config.yaml`
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Python 代码风格(Google Python Style Guide)
|
||||
|
||||
本 Playbook 的 Python 代码风格以 Google Python Style Guide 为基线(基于 PEP 8):
|
||||
本 Playbook 的 Python 代码风格以 Google Python Style Guide 为基线(基于 PEP
|
||||
8):
|
||||
|
||||
- Google Python Style Guide: https://google.github.io/styleguide/pyguide.html
|
||||
- PEP 8: https://peps.python.org/pep-0008/
|
||||
|
||||
Reference in New Issue
Block a user