-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (84 loc) · 2.62 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (84 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "skillcheck"
version = "1.4.1"
description = "Cross-agent skill quality gate for SKILL.md files conforming to the agentskills.io specification"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.10"
authors = [
{ name = "Brad Kinnard" },
{ name = "Aftermath Technologies Ltd" },
]
dependencies = [
"pyyaml>=6.0",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Quality Assurance",
"Typing :: Typed",
]
[project.optional-dependencies]
dev = [
"mypy>=1.10",
"pre-commit>=3.5",
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.6",
"types-PyYAML>=6.0",
]
tiktoken = [
"tiktoken>=0.7",
]
[project.scripts]
skillcheck = "skillcheck.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/skillcheck"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# Coverage floor sits a few points under the ~72% measured on CPython 3.10 so it
# survives matrix variance: the CLI modules (cli.py, commands.py) run in
# subprocesses the in-process tracer does not see, the tomllib vs fallback-parser
# branch flips between 3.10 and 3.11+, and a few tests skip on Windows.
addopts = "--cov=skillcheck --cov-report=term-missing --cov-fail-under=68"
[tool.ruff]
target-version = "py310"
line-length = 127
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = ["E501"] # line-length in unchangeable string literals (JSON fixtures, base64, schema text)
[tool.mypy]
strict = true
python_version = "3.10"
files = [
"src/skillcheck",
"scripts/regen_self_host_fixtures.py",
"scripts/skillcheck_case_study_report.py",
"scripts/summarize_batch.py",
]
[[tool.mypy.overrides]]
# tiktoken ships no type stubs; tomllib has no typeshed stubs under the pinned
# python_version (3.10), where it is the optional 3.11+ stdlib backport branch.
module = ["tiktoken", "tomllib"]
ignore_missing_imports = true
[tool.coverage.run]
source = ["skillcheck"]
# __main__.py is the `python -m skillcheck` shim; it only runs in a subprocess,
# so the in-process test run never executes it.
omit = ["*/__main__.py"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]