- 使用 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>
616 B
616 B
Python 代码风格(Google Python Style Guide)
本 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/
项目约定(Project Conventions)
- 行宽:80(与
black/flake8/pylint配置保持一致) - docstring:Google 风格(与
.flake8的docstring-convention = google对齐) - import 顺序:使用
isort的profile = google
当既有代码与本约定冲突时,优先保持局部一致性,逐步迁移。