-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
171 lines (150 loc) · 4.89 KB
/
pyproject.toml
File metadata and controls
171 lines (150 loc) · 4.89 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "strands-robots"
dynamic = ["version"]
description = "AI-powered robot control, simulation, and training for Strands Agents — integrates with MuJoCo, Isaac Sim, Newton, and many more"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "Apache-2.0"}
authors = [
{name = "AWS", email = "opensource@amazon.com"},
]
keywords = [
"robots", "agents", "strands", "sdk",
"mujoco", "simulation", "lerobot", "reinforcement-learning",
"gr00t", "isaac-sim", "vla",
"robot-learning", "imitation-learning",
"teleoperation", "manipulation", "strands-agents",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"strands-agents>=1.0.0,<2.0.0",
"numpy>=1.21.0,<3.0.0",
"opencv-python-headless>=4.5.0,<5.0.0",
"Pillow>=8.0.0,<12.0.0",
]
[project.optional-dependencies]
groot-service = [
"pyzmq>=27.0.0,<28.0.0",
"msgpack>=1.0.0,<2.0.0",
]
lerobot = [
"lerobot>=0.5.0,<0.6.0",
]
all = [
"strands-robots[groot-service]",
"strands-robots[lerobot]",
]
dev = [
"pytest>=6.0,<9.0.0",
"pytest-cov>=4.0.0,<6.0.0",
"ruff>=0.4.0,<1.0.0",
"mypy>=1.0.0,<2.0.0",
"pytest-timeout>=2.0.0,<3.0.0",
]
[project.urls]
Homepage = "https://github.com/strands-labs/robots"
Documentation = "https://github.com/strands-labs/robots#readme"
Repository = "https://github.com/strands-labs/robots.git"
Issues = "https://github.com/strands-labs/robots/issues"
Changelog = "https://github.com/strands-labs/robots/releases"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["strands_robots"]
[tool.hatch.envs.default]
installer = "uv"
dependencies = [
"pytest>=6.0,<9.0.0",
"pytest-cov>=4.0.0,<6.0.0",
"ruff>=0.4.0,<1.0.0",
"mypy>=1.0.0,<2.0.0",
"Pillow>=8.0.0,<12.0.0",
"requests>=2.28.0,<3.0.0",
"msgpack>=1.0.0,<2.0.0",
"pyzmq>=27.0.0,<28.0.0",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-integ = "pytest tests_integ/ -v --timeout=300 {args}"
lint = ["ruff check strands_robots tests tests_integ", "ruff format --check strands_robots tests tests_integ", "mypy strands_robots tests tests_integ"]
format = ["ruff check --fix strands_robots tests tests_integ", "ruff format strands_robots tests tests_integ"]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line too long — handled by formatter
]
[tool.ruff.lint.isort]
known-first-party = ["strands_robots"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = false
# Third-party libs without type stubs
[[tool.mypy.overrides]]
module = ["lerobot.*", "gr00t.*", "draccus.*", "msgpack.*", "zmq.*", "huggingface_hub.*", "serial.*", "psutil.*", "torch.*", "torchvision.*", "transformers.*", "einops.*"]
ignore_missing_imports = true
# @tool decorator injects runtime signatures mypy cannot check
[[tool.mypy.overrides]]
module = ["strands_robots.tools.*"]
disallow_untyped_defs = false
warn_return_any = false
ignore_missing_imports = true
# LeRobot local policy uses dynamic attr access via draccus PreTrainedConfig
[[tool.mypy.overrides]]
module = ["strands_robots.policies.*"]
warn_return_any = false
disallow_untyped_defs = false
# Robot core — complex dynamic assembly, optional deps
[[tool.mypy.overrides]]
module = ["strands_robots.robot"]
disallow_untyped_defs = false
warn_return_any = false
# __init__.py has lazy import helpers
[[tool.mypy.overrides]]
module = ["strands_robots.__init__"]
disallow_untyped_defs = false
# Registry modules — dynamic JSON loading returns Any
[[tool.mypy.overrides]]
module = ["strands_robots.registry.*"]
warn_return_any = false
disallow_untyped_defs = false
# Test files — relaxed type checking for mocks, fixtures, and test utilities
[[tool.mypy.overrides]]
module = ["tests.*", "tests_integ.*"]
disallow_untyped_defs = false
warn_return_any = false
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --cov=strands_robots --cov-report=term-missing --strict-markers"
markers = [
"gpu: requires CUDA GPU and real model weights (run with: pytest -m gpu)",
]