-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (92 loc) · 3.19 KB
/
pyproject.toml
File metadata and controls
99 lines (92 loc) · 3.19 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
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "asr"
version = "0.1.0"
description = "Agent orchestrator for incident investigation"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115",
"fastmcp>=2.10",
"langgraph>=0.6",
"langgraph-checkpoint-sqlite>=2.0",
"aiosqlite>=0.19",
"langchain>=0.3",
"langchain-core>=0.3",
"langchain-ollama>=0.3",
"langchain-openai>=0.3",
"langchain-mcp-adapters>=0.1",
"pydantic>=2.9",
"pyyaml>=6.0",
"streamlit>=1.40",
"sqlalchemy>=2.0",
"uvicorn[standard]>=0.32",
"faiss-cpu>=1.8",
"langchain-community>=0.3",
"langchain-postgres>=0.0.12",
"psycopg[binary]>=3.2",
"numpy>=1.26",
"apscheduler>=3.10,<4",
]
[project.optional-dependencies]
# Postgres checkpointer is optional: SQLite-only deploys (and CI) skip
# the wheel and the lazy import in runtime.checkpointer never fires.
# Production Postgres deploys install via ``pip install asr[postgres]``.
postgres = [
"langgraph-checkpoint-postgres>=2.0",
"psycopg-pool>=3.2",
]
dev = [
"pytest>=8.3",
"pytest-asyncio>=0.24",
"pytest-cov>=7,<8",
"pytest-repeat>=0.9", # D-13: local 50x stability gate via --count=N
"httpx>=0.27",
"ruff>=0.7",
"pyright>=1.1,<2",
"langgraph-checkpoint-postgres>=2.0",
"psycopg-pool>=3.2",
]
[tool.hatch.build.targets.wheel]
packages = ["src/runtime", "examples"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "-v --cov=src/runtime --cov-report=term-missing --cov-report=xml"
pythonpath = ["src", "."]
[tool.coverage.run]
# The coverage gate measures the runtime core; the UI/dist scaffolding
# layer is intentionally excluded:
# - src/runtime/ui.py: 1573-line Streamlit shell that becomes
# dist/ui.py in the single-file bundle. v1.3 Phase 20 (HARD-09)
# scaffolded unit tests for it but reaching parity with backend
# coverage requires a dedicated UI-testing milestone.
# - src/runtime/__main__.py: thin argparse-only CLI entry shipped
# into dist/app.py; exercised by manual smoke, not pytest.
# - src/runtime/checkpointer_postgres.py: prod-only postgres saver
# skipped in CI (sqlite-only test env).
# - src/runtime/triggers/transports/plugin.py: stub transport.
# All four show up in dist/* but contribute no runtime logic the
# telemetry / auto-learning chain depends on.
omit = [
"src/runtime/ui.py",
"src/runtime/__main__.py",
"src/runtime/checkpointer_postgres.py",
"src/runtime/triggers/transports/plugin.py",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.pyright]
# Phase 19 (HARD-03): the CI gate runs ``pyright src/runtime`` and now
# fails on any error. ``extraPaths = ["src"]`` lets pyright resolve the
# bare ``runtime.X`` imports the code uses (mirrors pytest's ``pythonpath``
# in [tool.pytest.ini_options]). Mode is ``basic`` because the project's
# typing surface is BaseModel-heavy with langchain/langgraph stubs that
# are partial; we treat genuine bugs as errors and tag stub gaps with
# per-line ``# pyright: ignore[<rule>] -- <rationale>`` comments.
include = ["src"]
extraPaths = ["src"]
pythonVersion = "3.11"
typeCheckingMode = "basic"