File size: 1,634 Bytes
7952f32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "graphforge"
version = "0.0.1"
description = "Graph-first code generation environment for long-horizon RL planning."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Naga", email = "naganithin@poshmark.com" }]
dependencies = [
    "pydantic>=2.6",
    "fastapi>=0.110",
    "uvicorn[standard]>=0.27",
    "httpx>=0.27",
    "typing-extensions>=4.10",
    "openenv-core>=0.1.0",
    "pyyaml>=6.0",
]

[project.optional-dependencies]
validation = [
    "mypy>=1.10",
]
behavioral = [
    "hypothesis>=6.100",
]
training = [
    "torch>=2.2",
    "transformers>=4.42",
    "trl>=0.12",
    "peft>=0.11",
    "accelerate>=0.30",
    "datasets>=2.18",
    "matplotlib>=3.8",
    "numpy>=1.26",
]
demo = [
    "gradio>=4.30",
]
dev = [
    "pytest>=8.0",
    "pytest-cov>=5.0",
    "ruff>=0.4",
    "mypy>=1.10",
    "hypothesis>=6.100",
]

[tool.setuptools.packages.find]
include = ["graphforge*", "env*"]
exclude = ["tests*", "notebooks*", "training*", "plots*", "space*"]

[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-ra --strict-markers"
markers = [
    "slow: marks tests as slow (deselect with '-m \"not slow\"')",
    "subprocess: tests that spawn subprocesses (mypy, behavioral)",
]

[tool.mypy]
python_version = "3.10"
strict = true
ignore_missing_imports = true
exclude = ["build/", "dist/"]

[tool.ruff]
line-length = 100
target-version = "py310"

[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "SIM"]
ignore = ["E501"]