Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
274 lines (261 loc) · 10.3 KB
/
Copy pathpyproject.toml
File metadata and controls
274 lines (261 loc) · 10.3 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 77", "wheel"]
[project]
name = "skillevaluator"
version = "1.2.1"
description = "Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Includes reusable GitHub Actions and GitLab CI templates, with all-tier evaluation available as an opt-in."
authors = [{ name = "NVIDIA Corporation" }]
readme = "README.md"
keywords = [
"agent-evaluation",
"agent-plugins",
"agent-security",
"agent-skills",
"agentic-ai",
"ai-agents",
"benchmark",
"ci-templates",
"claude-code",
"codex",
"evaluate",
"evaluation",
"harness",
"plugin",
"plugin-evaluation",
"security-scanner",
"skill-eval",
"skill-evaluation",
"skill-evaluator",
"skills",
]
classifiers = [
"Environment :: Console",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Quality Assurance",
]
requires-python = ">=3.12,<3.15"
license = "Apache-2.0"
license-files = [
"LICENSE",
"NOTICE",
"THIRD_PARTY_NOTICES.md",
]
# Base install is static-validation capable (Tier 1) and must NOT pull Harbor
# or LLM clients. Those live behind the extras below.
dependencies = [
# Tier 1 Code Risk Analysis scanner, which validate runs by default.
"bandit>=1.9.4",
"click>=8.3.3,<9",
"idna>=3.10,<4",
"jinja2>=3.1",
"markdown-it-py>=4.2,<5",
"packaging>=24",
"pathspec>=0.12,<2",
"pydantic>=2.11.0",
"pyyaml>=6.0",
# Dataset-authored signal patterns require a per-match timeout.
"regex>=2024.11.6",
"rich>=13.5.0",
# Runs the pinned SkillSpector wheel in its own environment (uv tool run),
# so a plain pip install can complete the Tier 1 security check.
"uv>=0.11.27",
]
[project.optional-dependencies]
# Shared public LLM / embedding clients used by LLM-backed checks, Tier 2, and Tier 3.
llm = [
# Security floors for dependencies installed through LiteLLM and boto3.
"aiohttp>=3.14.4,<4",
"anthropic>=0.83.0",
# Botocore 1.44 introduced HTTPS enforcement for bearer authentication.
"boto3>=1.44.0",
# The LLM stack and Harbor use filelock; aiohttp uses multidict.
"filelock>=4.2.1,<5",
"fsspec>=2026.6.0",
"litellm>=1.110.2,<1.111.0.dev0",
"multidict>=6.9.1,<7",
"openai>=2.21.0",
"urllib3>=2.8.0,<3",
]
# Tier 2 intra-skill deduplication and local-catalog inter-skill similarity.
tier2 = [
"skillevaluator[llm]",
]
# Operator-run Tier 2 registry overlap pilot.
registry = [
"psycopg[binary]>=3.3.3,<4",
"skillevaluator[tier2]",
]
# Tier 3 live agent evaluation through Harbor's native environments.
tier3 = [
"skillevaluator[llm]",
"harbor[gke]==0.25.0",
# MCP 1.30 fixes the server-authentication, client-transport, and session limit advisories.
"mcp>=1.30.0,<2",
# CVE-2026-48522 through CVE-2026-48526 fixed floor.
"pyjwt[crypto]>=2.13.0",
# The 4.0.1 release includes the device grant security fix (via harbor[gke]).
"oauthlib>=4.0.1",
# PYTHON_DOTENV_DISABLED, which keeps Harbor from loading .env files, needs 1.2.0.
"python-dotenv>=1.2.0",
]
# Scanner for the opt-in Dependency Vulnerability Audit (`--check dependency`).
security = [
# pip-audit uses the installed CA bundle for the eMudhra trust fix.
"certifi>=2026.10.19",
# Security floor for CacheControl's file-backed cache.
"filelock>=4.2.1,<5",
# CVE-2026-114613 fixed floor for pip-audit's CacheControl dependency.
"msgpack>=1.2.3",
# pip needs the same eMudhra fix in its vendored CA bundle.
"pip>=26.2.2",
"pip-audit>=2.10.0",
"urllib3>=2.8.0,<3",
]
# Verify GitHub-signed execution receipts for the optional CI report publisher.
publisher = [
"pyjwt[crypto]>=2.13.0",
]
# Optional local UI for comparing saved reports; never imported by base commands.
dashboard = [
# server.allowedHosts, which limits the dashboard to loopback host names, needs 1.61.
"streamlit>=1.61,<2",
"urllib3>=2.8.0,<3",
]
# Public tiers and dependency auditing. Install [registry] separately for the pilot.
all = [
"skillevaluator[tier2,tier3,security]",
]
dev = [
"skillevaluator[publisher]",
# PyPA build backs the `make build` target.
"build>=1.2",
"httpx>=0.27",
"pytest>=8.4.0",
"pytest-cov>=6.2.0",
# pytest-xdist carried over for parallel test execution (-n auto).
"pytest-xdist>=3.6.0",
# Dedicated offline HTML browser checks; never needed by the installed reporter.
"playwright==1.65.2",
# Ruff 0.16 enables new rules that require a dedicated repository-wide cleanup.
"ruff>=0.15.4,<0.16",
]
[project.urls]
Documentation = "https://docs.nvidia.com/skills/skillevaluator/"
Repository = "https://github.com/NVIDIA/SkillEvaluator"
[project.scripts]
# Single console script for the consolidated distribution.
skillevaluator = "skillevaluator.cli:cli"
[tool.uv]
managed = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["skillevaluator*"]
[tool.setuptools.package-data]
"skillevaluator.tier3" = ["grader_reference/*.json", "grader_reference/trajectories/*.json"]
"skillevaluator" = ["ci-release.json", "ci-release-all-tiers.json"]
"skillevaluator.config" = ["*.yaml", "*.ini", "profiles/*.yaml"]
"skillevaluator.harness" = ["profiles/*.yaml"]
"skillevaluator.reporting" = ["templates/*.j2", "assets/*.js", "assets/*.md"]
"skillevaluator.tier3.harbor" = [
"templates/*.py",
"templates/*.sh",
]
"skillevaluator.tier3.reference_skills" = [
"*/SKILL.md",
"*/evals/*.json",
"*/evals/*.jsonl",
"*/evals/*.yaml",
"*/evals/*.yml",
"*/evals/harbor/**/*",
"*/evals/files/**/*",
"*/references/**/*",
"*/scripts/*.py",
"*/scripts/*.sh",
"*/files/**/*",
"*/environment/docker-compose*.yml",
"*/environment/docker-compose*.yaml",
"*/mcp_servers.toml",
]
[tool.ruff]
line-length = 120
target-version = "py312"
src = ["src", "tests"]
exclude = ["**/evals/results/**", ".venv", "build", "dist"]
[tool.ruff.lint]
# Union of the established rule selections and the broader static-analysis set.
select = ["E", "F", "I", "N", "W", "UP", "B", "A", "COM", "C4", "DTZ", "T10", "EXE", "FA", "ISC", "ICN", "G", "INP", "PIE", "T20", "Q", "RSE", "RET", "SLF", "SLOT", "SIM", "TID", "TCH", "INT", "ARG", "PTH", "TD", "FIX", "ERA", "PD", "PGH", "PL", "FLY", "NPY", "AIR", "PERF", "FURB", "LOG", "RUF"]
# Union of the ignore lists across all three repos.
ignore = [
"E402", # Module-level import not at top of file
"E501", # Line too long
"E741", # Ambiguous variable name
"N806", # Variable in function should be lowercase
"N818", # Exception name should end in Error
"G004", # Logging statement uses f-string
"COM812", # Trailing comma (conflicts with formatter)
"ISC001", # Implicit string concatenation (conflicts with formatter)
"TRY003", # Long messages outside the exception class
"EM101", # Raw string in exception
"EM102", # f-string in exception
"PLR2004", # Magic value in comparison
"S101", # Use of assert
"BLE001", # Blind except
"PLC0415", # Import not at top level (allow lazy imports)
"UP007", # Use X | Y for type annotations (3.10+ compatibility)
"PERF203", # Try-except in loop
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements in function
"PLR0912", # Too many branches
"PLR0911", # Too many return statements (consistent with the other relaxed PLR complexity rules)
"PLR0911", # Too many return statements (consistent with the other relaxed PLR complexity rules)
"PLW2901", # Loop variable overwritten
"PLW1510", # subprocess.run without check (errors handled manually)
"SLF001", # Private member access
"ARG001", # Unused function argument
"EXE001", # Shebang without executable bit
"SIM108", # Use ternary operator (readability preference)
"PIE810", # startswith with tuple (readability)
"PERF401", # Use list.extend (readability preference)
"TC003", # Move stdlib import into type-checking block
]
[tool.ruff.lint.per-file-ignores]
# CLI/gate scripts print human-readable results to stdout (T201) and are run as
# standalone files, not imported as packages (INP001).
"scripts/**" = ["T201", "INP001"]
# Tier 3 dataset CLIs are standalone command-line tools that print
# human-readable progress and results to stdout by design.
"src/skillevaluator/tier3/generate_dataset.py" = ["T201"]
# Reference skill scripts are standalone executables run by the agent under
# Harbor; printing to stdout is their output contract. Shared helpers beside
# them are imported from the script directory, not as a package (INP001).
"src/skillevaluator/tier3/reference_skills/**" = ["T201", "INP001"]
# pytest test directories are implicit namespace packages by design (no
# __init__.py anywhere under tests/).
"tests/**" = ["INP001"]
# Test helper / fixture scripts run standalone and print to stdout by design.
"tests/golden/generate_cli_surface.py" = ["T201"]
"tests/fixtures/skills/**" = ["T201"]
[tool.ruff.lint.isort]
known-first-party = ["skillevaluator"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# Put the repo root on sys.path so the release tooling tests can
# ``import scripts.release.*`` (the tooling is not part of the installed wheel).
pythonpath = ["."]
# Union of the file-discovery patterns, including *_test.py.
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# addopts + markers carried over so marker-based selection works
# and live/integration suites are excluded from the default fast loop.
addopts = "--tb=short -m 'not live and not integration'"
markers = [
"integration: end-to-end integration tests (may require fixtures or longer runtime)",
"live: live tests against the in-process Harbor backend (requires the tier3 extra + NVIDIA_API_KEY)",
]