-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (74 loc) · 1.94 KB
/
pyproject.toml
File metadata and controls
87 lines (74 loc) · 1.94 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 = "worldseed"
version = "0.1.0"
description = "A stateful world engine where AI agents live autonomously"
requires-python = ">=3.11"
dependencies = [
"pydantic>=2.10,<3",
"PyYAML>=6.0.2,<7",
"structlog>=25.1,<26",
"fastapi>=0.115,<1",
"uvicorn[standard]>=0.34,<1",
"httpx>=0.28,<1",
"deepdiff>=7.0,<9",
"lunar-python>=1.4.8",
"anthropic>=0.86.0",
]
[project.optional-dependencies]
dm = [
"litellm>=1.60,<2",
"instructor>=1.7,<2",
]
[project.scripts]
worldseed = "worldseed.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/worldseed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
# Default to xdist parallel — sequential mode triggers cross-test pollution
# from module-level singletons in server routes (tokens, agent_tokens) and
# shared state in e2e/integration fixtures. Each worker is a fresh process,
# so workers can't pollute each other. Override with `pytest -p no:xdist`.
addopts = "-n auto"
[tool.ruff]
target-version = "py311"
src = ["src"]
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.mypy]
python_version = "3.11"
strict = true
packages = ["worldseed"]
mypy_path = ["src"]
exclude = ["src/worldseed/autoresearch/baseline_template/"]
[[tool.mypy.overrides]]
module = "worldseed.autoresearch.baseline_template.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "litellm"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "instructor"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "deepdiff"
ignore_missing_imports = true
[dependency-groups]
dev = [
"pytest>=8.3,<9",
"pytest-asyncio>=1.3.0",
"pytest-cov>=6.0,<7",
"pytest-xdist>=3.8.0",
"playwright>=1.58.0",
"pytest-playwright>=0.7.2",
"anyio>=4.12.1",
"ruff>=0.4,<1",
"mypy>=1.10,<2",
"types-PyYAML>=6.0",
"pre-commit>=4.0,<5",
]