feat: 增加日历与版本化日报

This commit is contained in:
Benature
2026-11-10 21:55:50 +08:00
parent e1d222a3fd
commit c03d935e9e
10 changed files with 585 additions and 70 deletions

10
tests/test_version.py Normal file
View File

@ -0,0 +1,10 @@
from snooper_version import bump_patch, format_version
def test_version_marks_dirty_worktree_as_dev():
assert format_version("0.1.0", "abc1234", False) == "0.1.0+gabc1234"
assert format_version("0.1.0", "abc1234", True) == "0.1.0.dev0+gabc1234"
def test_patch_version_bump():
assert bump_patch("0.1.9") == "0.1.10"