portfolio-optimiser-claude/pyproject.toml
Kjell Tore Guttormsen a7e8ffecb8 chore(deps): re-pin llm-ingestion-okf to v0.3.1 + migrate tests to stable error codes
Pin dae0bd1a -> v0.3.1 (=692f2df) on the public Forgejo mirror; uv.lock pins
the exact commit behind the tag.

- Drop the mypy override: the library ships py.typed from v0.2.0, so strict
  mode now follows its real types instead of follow_untyped_imports.
- Migrate 8 library-error assertions from pytest.raises(match=...) to
  exc.value.code — message text is explicitly unstable from v0.3.0, the
  codes are the stability contract.
- Fix a real breakage the bump surfaced: IngestResult gained a required
  `stamp` field (d3a3bcc), which the delegation fake did not construct.
- The read-only SQL test loses resolution under the code contract
  (`sql_failed` is generic), so it now proves read-onlyness by effect —
  the write never lands — instead of by message wording.
- Correct the guard plan: G1's persist-gate anchor (ingest.py:372-387) died
  with the 2026-07-16 adoption. Door A is ungated by the library's own
  README, so gating stays our responsibility at the call site.

Verified: 426 tests green, golden output byte-exact unchanged, full gate
clean (ruff + format + mypy strict).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RmNAgbRXUgvoSKxVK4Bevv
2026-07-20 07:22:09 +02:00

42 lines
1.1 KiB
TOML

[project]
name = "portfolio-optimiser-claude"
version = "0.1.0"
description = "Sibling implementation of the portfolio-optimiser method on the Claude Agent SDK (D7)"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"claude-agent-sdk>=0.2.111,<0.3",
"llm-ingestion-okf",
"pydantic>=2",
]
# Distribution channel (2026-07-16 decision, mirrors the library's B2 answer):
# git pin against the public Forgejo repo — reproducible for every consumer of
# this public repo, uv.lock pins the exact commit behind the tag. Bump the rev
# when the library releases a new tag.
[tool.uv.sources]
llm-ingestion-okf = { git = "https://git.fromaitochitta.com/open/llm-ingestion-okf.git", rev = "v0.3.1" }
[dependency-groups]
dev = [
"pytest>=8",
"ruff>=0.8",
"mypy>=1.13",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/portfolio_optimiser_claude"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.mypy]
strict = true
[tool.pytest.ini_options]
testpaths = ["tests"]