-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
199 lines (175 loc) · 4.28 KB
/
pyproject.toml
File metadata and controls
199 lines (175 loc) · 4.28 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mujoco-mcp"
version = "0.8.2"
description = "MuJoCo Model Context Protocol server - Control physics simulations with AI"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [
{name = "MuJoCo MCP Team", email = "noreply@mujoco-mcp.org"}
]
keywords = ["mcp", "mujoco", "physics", "simulation", "ai", "model-context-protocol"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"mujoco>=2.3.0",
"mcp>=1.0.0",
"numpy>=1.22.0",
"pydantic>=2.0.0",
"gymnasium>=0.29.0",
"scipy>=1.10.0",
]
[project.optional-dependencies]
dev = [
# Testing
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.11.0",
"coverage>=7.0.0",
"hypothesis>=6.0.0",
# Code formatting and linting
"black>=23.12.0",
"ruff>=0.1.9",
"isort>=5.13.0",
# Type checking
"mypy>=1.8.0",
"types-requests>=2.31.0",
# Security
"bandit[toml]>=1.7.5",
"safety>=2.3.0",
# Code quality analysis
"radon>=6.0.0",
"xenon>=0.9.0",
# Pre-commit hooks
"pre-commit>=3.6.0",
# Documentation
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.3.0",
"myst-parser>=2.0.0",
# Development tools
"ipython>=8.0.0",
"jupyter>=1.0.0",
"rich>=13.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.21.0",
"pytest-mock>=3.11.0",
"coverage>=7.0.0",
]
docs = [
"sphinx>=7.0.0",
"sphinx-rtd-theme>=1.3.0",
"myst-parser>=2.0.0",
]
[project.scripts]
mujoco-mcp = "mujoco_mcp.__main__:main"
mujoco-mcp-viewer = "mujoco_mcp.viewer_server:main"
[project.urls]
"Homepage" = "https://github.com/robotlearning123/mujoco-mcp"
"Documentation" = "https://mujoco-mcp.readthedocs.io"
"Bug Tracker" = "https://github.com/robotlearning123/mujoco-mcp/issues"
"Source" = "https://github.com/robotlearning123/mujoco-mcp"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
[tool.mypy]
python_version = "3.10"
# Start with basic type checking, can be made stricter over time
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = false
disallow_untyped_decorators = false
no_implicit_optional = false
warn_redundant_casts = false
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = false
strict_equality = false
ignore_missing_imports = true
# Focus on catching real errors first
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
disallow_incomplete_defs = false
[tool.black]
line-length = 100
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.ruff_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
known_first_party = ["mujoco_mcp"]
force_single_line = true
force_sort_within_sections = true
[tool.bandit]
exclude_dirs = ["tests", "scripts"]
skips = ["B101", "B603", "B607"] # Skip assert, subprocess calls
[tool.coverage.run]
source = ["src/mujoco_mcp"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
"*/site-packages/*",
"*/venv/*",
"*/.venv/*",
]
branch = true
parallel = true
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
"@overload",
"except ImportError:",
]
# Target coverage: 95% line, 85% branch
fail_under = 85.0
[tool.coverage.html]
directory = "htmlcov"
title = "MuJoCo MCP Coverage Report"
[tool.coverage.xml]
output = "coverage.xml"
[tool.coverage.json]
output = "coverage.json"
pretty_print = true