Files
douyin_guaji-main/pyproject.toml
T
CodexandClaude Opus 4.7 e35e8a85bd 建立版本管理体系:CHANGELOG + bump 脚本 + pyproject 元数据 + 一致性测试
新增:
- CHANGELOG.md:Keep a Changelog 1.1.0 格式,回填 V3.0.0–V3.3.3 历史
- tools/dev/bump_version.py:一键 bump major/minor/patch,
  同步 version.py / pyproject.toml / CHANGELOG.md,并创建 git tag。
  支持 --dry-run / --no-tag。
- tests/test_version_consistency.py:9 个用例确保
  version.py、pyproject.toml、CHANGELOG.md 三处版本号一致

修改:
- pyproject.toml 加 [project] 元数据,version=3.3.3(PEP 440 形式,
  与 douyin/core/version.py 同步;后者带 V 前缀,是单一事实来源)

后续会给 V3.0.0 → V3.3.3 补打 git tag。

回归:353 个 pytest 用例通过;bump_version dry-run 三种模式(patch/minor/major/set)
全部输出正确。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 15:17:56 +08:00

37 lines
1.3 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[project]
# 项目元数据。版本号的"单一事实来源"是 douyin/core/version.py: APP_VERSION,
# 这里的 version 由 tools/dev/bump_version.py 与 version.py 同步维护。
# 注意:为兼容 PEP 440,这里去掉 "V" 前缀,仅保留数字部分(如 V3.3.3 → 3.3.3)。
name = "douyin_guaji"
version = "3.3.3"
description = "基于 ADB + OCR + 像素检测 + 模板匹配的抖音直播间福袋自动挂机工具"
readme = "README.md"
requires-python = ">=3.10"
authors = [{ name = "douyin_guaji" }]
[tool.pylint.messages_control]
disable = [
"broad-except",
"protected-access",
"unused-import",
"unused-variable",
"reimported",
"redefined-outer-name",
"pointless-string-statement",
"unreachable"
]
[tool.pytest.ini_options]
# pytest 配置:默认从 tests/ 目录收集,仅识别 test_*.py
# 当前测试有意写得"轻":业务级冒烟 + 纯函数单元测试,不依赖 ADB / OCR / 设备
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# -ra:显示所有非 PASS 的测试结果摘要;-q:精简输出
# --strict-markers:自定义 marker 必须先注册,避免笔误静默通过
addopts = "-ra -q --strict-markers"
markers = [
"smoke: 冒烟测试,覆盖业务关键链路的最小用例",
"slow: 较慢的测试(>1s),CI 中可单独跑",
]