-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (79 loc) · 1.98 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (79 loc) · 1.98 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
[build-system]
requires = ["hatchling>=1.27,<2"]
build-backend = "hatchling.build"
[project]
name = "trafficverse"
version = "0.1.0"
description = "SUMO traffic truth with TrafficVerse 2D UI and local CARLA 3D mirroring"
readme = "README.md"
requires-python = ">=3.10,<3.11"
dependencies = [
"alembic>=1.14,<2",
"fastapi>=0.115,<0.116",
"pydantic>=2.10,<3",
"pyarrow>=18,<19",
"psycopg[binary]>=3.2,<4",
"python-multipart>=0.0.20,<1",
"PyYAML>=6.0.2,<7",
"SQLAlchemy[asyncio]>=2.0,<3",
"uvicorn[standard]>=0.34,<1",
]
[project.optional-dependencies]
carla = [
"carla==0.9.16; (sys_platform == 'linux' and platform_machine == 'x86_64') or (sys_platform == 'win32' and platform_machine == 'AMD64')",
]
sumo = [
"sumolib>=1.18,<2",
"traci>=1.18,<2",
]
ui = [
"PySide6==6.11.1",
]
[project.scripts]
trafficverse = "trafficverse.cli:main"
[dependency-groups]
dev = [
"httpx>=0.28,<1",
"mypy>=1.14,<2",
"pytest>=8.3,<9",
"pytest-cov>=6,<7",
"ruff>=0.9,<1",
"types-PyYAML>=6.0.12,<7",
]
[tool.hatch.build]
dev-mode-dirs = ["src", "."]
[tool.hatch.build.targets.wheel]
packages = ["src/trafficverse", "ui"]
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "C4", "SIM"]
ignore = []
[tool.ruff.lint.isort]
known-first-party = ["trafficverse"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_unreachable = true
pretty = true
show_error_codes = true
plugins = ["pydantic.mypy"]
mypy_path = "src"
[[tool.mypy.overrides]]
module = ["yaml"]
ignore_missing_imports = false
[tool.pytest.ini_options]
minversion = "8.0"
addopts = '-ra --strict-config --strict-markers -m "not integration and not e2e and not performance"'
pythonpath = ["."]
testpaths = ["tests"]
markers = [
"integration: requires a real external component",
"traffic: native traffic engine integration test",
"carla: requires CARLA",
"postgres: requires PostgreSQL",
"e2e: end-to-end test",
"performance: performance test",
]