Refresh the benchmark and performance surface across the repo. This updates the benchmark wrappers and helper scripts, regenerates the checked-in benchmark and perf-contract artifacts, and folds in the related roadmap, compatibility, and example notebook changes that belong with this performance-focused pass. Harden the Python CI and local pre-push flow so the same checks pass reliably in both places. The workflow and pre-push script now use module-safe uv typecheck invocations, the Python test environment installs the optional MCP dependency needed by the MCP server tests, and one-off root benchmark outputs are ignored to keep the repo clean. Align local tooling with the current project configuration by updating the Ruff pre-commit hook, tightening the API typing and MCP server helpers, and refreshing the lockfile to pick up the audited PyJWT fix while preserving the rest of the staged source changes.
25 lines
716 B
Python
25 lines
716 B
Python
from __future__ import annotations
|
|
|
|
import json
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
SCRIPTS = ROOT / "scripts"
|
|
if str(ROOT / "python") not in sys.path:
|
|
sys.path.insert(0, str(ROOT / "python"))
|
|
if str(SCRIPTS) not in sys.path:
|
|
sys.path.insert(0, str(SCRIPTS))
|
|
|
|
from build_api_manifest import build_manifest
|
|
|
|
|
|
def test_api_manifest_is_deterministic_and_current() -> None:
|
|
manifest_path = ROOT / "docs" / "api_manifest.json"
|
|
assert manifest_path.exists(), "docs/api_manifest.json is missing"
|
|
|
|
expected = build_manifest(ROOT, include_runtime_metadata=False)
|
|
actual = json.loads(manifest_path.read_text(encoding="utf-8"))
|
|
|
|
assert actual == expected
|