-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
56 lines (49 loc) · 1.6 KB
/
Copy pathpyproject.toml
File metadata and controls
56 lines (49 loc) · 1.6 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
[project]
name = "agent_runtime"
version = "0.1.0"
description = "Python port of Claude Code's agent-spawning architecture, on LangChain."
requires-python = ">=3.11"
readme = "README.md"
dependencies = [
"langchain-core>=0.3",
"langchain-anthropic>=0.3",
"pydantic>=2",
"python-dotenv>=1.0",
]
[project.optional-dependencies]
otel = [
"opentelemetry-api>=1.20",
"opentelemetry-sdk>=1.20",
"opentelemetry-exporter-otlp-proto-http>=1.20",
]
test = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
]
[project.scripts]
agent-runtime = "cli.main:main"
[tool.pytest.ini_options]
# auto: every `async def test_*` is treated as an asyncio test without
# needing the @pytest.mark.asyncio decorator. Reduces boilerplate.
asyncio_mode = "auto"
# Forbid the deprecated "function" scope default — explicit always.
asyncio_default_fixture_loop_scope = "function"
# Find tests in tests/ tree
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# Show slow tests so we can spot regressions in cancellation timing
addopts = [
"-ra", # short summary for skips/xfails
"--strict-markers", # typos in markers fail loudly
"--durations=10", # 10 slowest tests after each run
"-v", # verbose — one line per test
]
# Treat warnings as errors EXCEPT ones we know about
filterwarnings = [
"error",
# langchain emits these from deeper layers — not our code
"ignore::DeprecationWarning:langchain_core.*",
"ignore::PendingDeprecationWarning",
]