返回 last30days-skill
pyproject.toml
根目录 / pyproject.toml
1 [project]
2 name = "last30days-skill"
3 version = "4.9.0"
4 description = "Multi-source last-30-days research skill"
5 readme = "README.md"
6 requires-python = ">=3.12"
7 dependencies = []
8
9 [dependency-groups]
10 dev = [
11 "pytest>=9.1.1,<10",
12 "pytest-cov>=7,<8",
13 "pytest-xdist>=3.8,<4",
14 "pyyaml>=6.0.2,<7",
15 "towncrier>=25.8.0,<27",
16 ]
17
18 [tool.towncrier]
19 name = "last30days-skill"
20 directory = "changelog.d"
21 filename = "CHANGELOG.md"
22 start_string = "<!-- towncrier release notes start -->\n"
23 underlines = ["", "", ""]
24 title_format = "## [{version}] - {project_date}"
25 issue_format = "[#{issue}](https://github.com/mvanhorn/last30days-skill/issues/{issue})"
26
27 [[tool.towncrier.type]]
28 directory = "security"
29 name = "Security"
30 showcontent = true
31
32 [[tool.towncrier.type]]
33 directory = "removed"
34 name = "Removed"
35 showcontent = true
36
37 [[tool.towncrier.type]]
38 directory = "deprecated"
39 name = "Deprecated"
40 showcontent = true
41
42 [[tool.towncrier.type]]
43 directory = "added"
44 name = "Added"
45 showcontent = true
46
47 [[tool.towncrier.type]]
48 directory = "changed"
49 name = "Changed"
50 showcontent = true
51
52 [[tool.towncrier.type]]
53 directory = "fixed"
54 name = "Fixed"
55 showcontent = true
56
57 [tool.pytest.ini_options]
58 testpaths = ["tests"]
59 python_files = ["test_*.py"]
60 addopts = [
61 "-q",
62 "--tb=short",
63 ]
64
65 [tool.coverage.run]
66 branch = true
67 source = ["skills/last30days/scripts"]
68 omit = [
69 "skills/last30days/scripts/lib/vendor/*",
70 "dist/*",
71 ]
72
73 [tool.coverage.report]
74 skip_empty = true
75 show_missing = true
76 # Coverage gate (issue #254). Floor intended to rise over time, not a ceiling.
77 # Baseline measured 2026-09-23 on the full suite with scripts-tree source
78 # (tests/ excluded): TOTAL 82.28%. The previous 84 floor was measured with
79 # source = scripts + tests, where well-tested test code inflated the number;
80 # excluding tests/ lowers the honest baseline, which is why the floor moves
81 # 84 -> 81. Pinned at 81 (not 82) for ~1.3pp headroom against the measured
82 # 82.28; raise back toward 82+ as coverage grows.
83 # Do not lower without documenting why in the PR (see AGENTS.md Rules).
84 fail_under = 81
85 omit = [
86 "skills/last30days/scripts/lib/vendor/*",
87 "dist/*",
88 ]
89
89 lines TOML