-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (126 loc) · 3.1 KB
/
Copy pathpyproject.toml
File metadata and controls
143 lines (126 loc) · 3.1 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mobility-bench"
version = "1.0.0"
description = "MobilityBench - Mobility Agent Evaluation Framework"
readme = "README.md"
requires-python = ">=3.12"
# Core dependencies
dependencies = [
# CLI framework
"typer>=0.9.0",
"rich>=13.0.0",
"pyyaml>=6.0",
# Agent framework
"fastapi>=0.104.0",
"uvicorn>=0.24.0",
"jinja2>=3.1.6",
"langchain>=1.0.0",
"langchain-community>=0.4.0",
"langchain-core>=1.0.0",
"langchain-mcp-adapters>=0.1.9",
"langchain-openai>=1.0.0",
"langgraph>=1.0.0",
"protobuf>=4.25.0",
"pydantic>=2.11.7",
"pydantic-settings>=2.10.1",
"python-dotenv>=1.1.1",
"requests>=2.25.0",
"httpx>=0.24.0",
"zstandard>=0.22.0",
"uvloop>=0.19.0",
# Telemetry
"opentelemetry-api>=1.26.0",
"opentelemetry-sdk>=1.26.0",
"opentelemetry-semantic-conventions>=0.46b0",
# Data processing
"pandas>=2.0.0",
"openpyxl>=3.1.0",
"tabulate>=0.9.0",
"oss2>=2.18.0",
# Evaluation
"sentence-transformers>=2.2.0",
# LLM providers
"langchain_google_genai>=4.2.0",
"cpca>=0.5.5",
"setuptools<70",
]
# CLI entry point
[project.scripts]
mbench = "mobility_bench.cli.main:app"
# Optional dependency groups
[project.optional-dependencies]
# Evaluation related
eval = [
"sentence-transformers>=2.2.0",
"cpca>=0.5.5",
]
# Development tools
dev = [
"ruff",
]
# Testing related
test = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=1.0.0",
]
# Full development environment
all = [
"mobility-bench[eval,dev,test]"
]
# ===== Tool Configuration =====
[tool.uv]
required-version = ">=0.6.15"
link-mode = "copy"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --cov=src --cov-report=term-missing"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
[tool.hatch.build.targets.wheel]
packages = ["src/mobility_bench", "src"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
extend-include = ["*.pyi"]
# Excluded directories
exclude = [
".git",
".venv",
"src/proto/generated/", # Exclude auto-generated protobuf files
"web/", # Exclude standalone web debug interface
]
[tool.ruff.lint]
# Rules to enable
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
# Rules to ignore
ignore = [
"E501", # line-too-long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B006", # do not use mutable data structures for argument defaults
"B904", # raise ... from err
"C901", # too complex
"W191", # indentation contains tabs
]
[tool.ruff.lint.per-file-ignores]
"scripts/*.py" = ["E402"] # scripts need to set paths before imports
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "double" # Use double quotes consistently
docstring-code-format = true # Format code in docstrings