-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
102 lines (89 loc) · 2.04 KB
/
pyproject.toml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[project]
name = "reasoning-llm-mcts"
version = "0.1.0"
description = ""
authors = [
{name = "okdshin", email = "[email protected]"},
]
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
# Core dependencies for MCTS functionality
dependencies = [
"openai>=1.12.0",
"transformers>=4.37.0",
"torch>=2.2.0",
]
[project.scripts]
reasoning-llm-mcts-server = "reasoning_llm_mcts.cli:run_server [cli]"
[project.optional-dependencies]
# CLI and API server dependencies
cli = [
"fastapi>=0.109.0",
"uvicorn>=0.27.0",
"httpx>=0.26.0",
"jinja2>=3.1.0",
"pydantic>=2.0.0",
"typer>=0.9.0",
"python-dotenv>=1.0.0",
"pydantic-settings>=2.1.0",
]
# Development dependencies
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"black>=24.1.0",
"isort>=5.13.0",
"mypy>=1.8.0",
"ruff>=0.2.0",
]
# All optional dependencies
all = [
"reasoning-llm-mcts[cli]",
"reasoning-llm-mcts[dev]",
]
[build-system]
requires = ["hatchling>=1.21.0"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/reasoning_llm_mcts"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
check_untyped_defs = true
[tool.black]
line-length = 88
target-version = ["py311"]
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
[tool.ruff]
target-version = "py311"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"B", # flake8-bugbear
]
ignore = []
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # ignore unused imports in __init__ files
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query", "fastapi.Path"]