Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (79 loc) · 2.26 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (79 loc) · 2.26 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
[project]
name = "rulearena"
version = "0.1.0"
requires-python = ">=3.12,<3.13"
dependencies = [
"rulearena-attack-runtime",
"rulearena-attack-worker",
"rulearena-commerce-sandbox",
"rulearena-control-api",
"rulearena-domain-contracts",
"rulearena-evaluation",
"rulearena-observability",
"rulearena-oracle",
"rulearena-policy-schema",
"rulearena-reference-simulator",
"rulearena-refund-agent",
"rulearena-runtime-gate",
]
[dependency-groups]
dev = [
"httpx>=0.28.1,<0.29",
"mypy>=1.17.1,<2",
"pytest>=8.4.1,<9",
"pytest-asyncio>=1.1.0,<2",
"ruff>=0.12.11,<0.13",
]
[tool.uv.workspace]
members = [
"packages/attack_runtime",
"packages/domain_contracts",
"packages/evaluation",
"packages/observability",
"packages/oracle",
"packages/policy_schema",
"packages/reference_simulator",
"packages/refund_agent",
"packages/runtime_gate",
"services/commerce_sandbox",
"services/attack_worker",
"services/control_api",
]
[tool.uv.sources]
rulearena-attack-runtime = { workspace = true }
rulearena-attack-worker = { workspace = true }
rulearena-commerce-sandbox = { workspace = true }
rulearena-control-api = { workspace = true }
rulearena-domain-contracts = { workspace = true }
rulearena-evaluation = { workspace = true }
rulearena-observability = { workspace = true }
rulearena-oracle = { workspace = true }
rulearena-policy-schema = { workspace = true }
rulearena-reference-simulator = { workspace = true }
rulearena-refund-agent = { workspace = true }
rulearena-runtime-gate = { workspace = true }
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
addopts = "-p no:cacheprovider"
asyncio_mode = "auto"
markers = [
"postgres: requires the local PostgreSQL container",
"sandbox: requires the real Commerce Sandbox HTTP service",
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "ASYNC"]
[tool.mypy]
python_version = "3.12"
strict = true
plugins = ["pydantic.mypy"]
# Alembic requires every environment file to be named env.py, which mypy cannot
# disambiguate across control/sandbox migration packages; DDL scripts are checked
# by alembic itself against a live database.
exclude = "^migrations/"
[[tool.mypy.overrides]]
module = ["redis.*"]
ignore_missing_imports = true