-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (63 loc) · 1.6 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (63 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[project]
name = "openmathmodel"
version = "0.1.0"
description = "OpenMathModel Python workspace root"
requires-python = ">=3.12"
dependencies = []
# 虚拟根:只提供 workspace、依赖锁和共享工具配置,本身不构建为可安装包。
[tool.uv]
package = false
[tool.uv.workspace]
members = [
"packages/contracts",
"agents/core",
"agents/harness",
"agents/skills",
"agents/tools",
"agents/evals",
"backend/api",
"backend/worker",
]
[tool.uv.sources]
omm-contracts = { workspace = true }
omm-agent-core = { workspace = true }
omm-agent-harness = { workspace = true }
omm-agent-skills = { workspace = true }
omm-agent-tools = { workspace = true }
omm-agent-evals = { workspace = true }
omm-api = { workspace = true }
omm-worker = { workspace = true }
[dependency-groups]
dev = [
"ruff>=0.8",
"mypy>=1.13",
"pytest>=8.3",
"pytest-asyncio>=0.24",
"pytest-cov>=6.0",
# packages/contracts/validate.py 的契约自检依赖
"jsonschema>=4.18",
]
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = ["datasets/raw", "datasets/interim", "datasets/processed", "artifacts"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM", "RUF"]
[tool.mypy]
python_version = "3.12"
strict = true
warn_unreachable = true
files = [
"packages/contracts/src",
"agents/core/src",
"agents/harness/src",
"agents/skills/src",
"agents/tools/src",
"agents/evals/src",
"backend/api/omm_api",
"backend/worker/src",
]
[tool.pytest.ini_options]
# 跨模块测试集中在 /tests;单个 member 的单测放在自己的 tests/ 下。
testpaths = ["tests"]
asyncio_mode = "auto"