Files
playbook/docs/python/style_guide.md
T
cshandClaude Sonnet 4.5 99bef309b7 🎨 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>
2026-01-07 17:18:01 +08:00

616 B
Raw Blame History

Python 代码风格(Google Python Style Guide

本 Playbook 的 Python 代码风格以 Google Python Style Guide 为基线(基于 PEP 8):

项目约定(Project Conventions

  • 行宽:80(与 black/flake8/pylint 配置保持一致)
  • docstringGoogle 风格(与 .flake8docstring-convention = google 对齐)
  • import 顺序:使用 isortprofile = google

当既有代码与本约定冲突时,优先保持局部一致性,逐步迁移。