📝 docs(playbook): add contributing and multi-language standards

Introduce C++ and Python docs/templates and split .agents rulesets by language (tsl/cpp/python).

Move commit message guidance to CONTRIBUTING.md (full spec remains in docs/common/commit_message.md).
This commit is contained in:
csh
2025-12-14 17:32:50 +08:00
parent 380228caca
commit e504a689dc
47 changed files with 1521 additions and 162 deletions
+51
View File
@@ -0,0 +1,51 @@
[tool.black]
# Black 代码格式化工具配置(模板)
line-length = 80
target-version = ["py313"]
exclude = '''
/(
\.git
| \.venv
| venv
| build
| dist
| __pycache__
| \.egg-info
)/
'''
[tool.isort]
# isort 导入排序工具配置(模板)
profile = "google"
line_length = 80
multi_line_output = 3
lines_after_imports = 2
# 按项目需要填写/维护:
known_third_party = []
known_first_party = []
skip = [".venv", "venv", "build", "dist"]
[tool.mypy]
# MyPy 类型检查配置(可选,模板)
python_version = "3.13"
warn_unused_ignores = true
warn_redundant_casts = true
warn_return_any = true
disallow_untyped_defs = false
disallow_untyped_calls = false
ignore_missing_imports = true
[tool.pytest.ini_options]
# pytest 测试配置(模板)
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short --strict-markers"
markers = [
"slow: marks tests as slow",
"integration: marks tests as integration tests",
]