-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (151 loc) · 4.99 KB
/
Copy pathpyproject.toml
File metadata and controls
166 lines (151 loc) · 4.99 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "houdini-mcp"
version = "1.0.0"
description = "MCP server for SideFX Houdini integration via rpyc"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.10"
keywords = ["houdini", "mcp", "model-context-protocol", "3d", "vfx", "procedural"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Graphics :: 3D Modeling",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"fastmcp>=0.1.0",
# rpyc MUST be 5.x - version 6.x has protocol incompatibility with Houdini's hrpyc
"rpyc>=5.0.0,<6.0.0",
"python-dotenv>=1.0.0",
# For get_houdini_help web scraping
"requests>=2.28.0",
"beautifulsoup4>=4.11.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.23.0",
# Property-based / stateful tests (outbound WSS state-machine core,
# execute_code safety-rail evasion fuzzing).
"hypothesis>=6.100.0",
"ruff>=0.8.0",
"mypy>=1.0.0",
"pre-commit>=3.0.0",
"bandit[toml]>=1.7.0",
]
[project.urls]
Homepage = "https://github.com/oculairmedia/houdini-mcp"
Repository = "https://github.com/oculairmedia/houdini-mcp"
Issues = "https://github.com/oculairmedia/houdini-mcp/issues"
[project.scripts]
houdini-mcp = "houdini_mcp.server:run_server"
[tool.setuptools.packages.find]
where = ["."]
include = ["houdini_mcp*"]
# Ruff configuration (replaces black, isort, flake8)
[tool.ruff]
target-version = "py310"
line-length = 100
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"ARG001", # unused function argument (common in interfaces)
"ARG002", # unused method argument (common in interface methods and pytest fixtures)
"SIM105", # intentional try/except/pass defensive guards around optional Houdini APIs (see bandit B110)
]
[tool.ruff.lint.per-file-ignores]
# _common.py deliberately groups imports under section headers (e.g. parallel
# execution utilities) rather than at the top of the module.
"houdini_mcp/tools/_common.py" = ["E402"] # module-import-not-at-top-of-file
[tool.ruff.lint.isort]
known-first-party = ["houdini_mcp"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
markers = [
"integration: requires a live Houdini hrpyc server",
]
# Coverage configuration
[tool.coverage.run]
source = ["houdini_mcp"]
branch = true
omit = [
"*/tests/*",
"*/__main__.py",
"*/server.py", # FastMCP registration - tested via integration tests
"*/tools/_common.py", # Shared utilities - will be used in Phase 2
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
# CI runs the unit subset only (`-m 'not integration'`, since integration
# tests need a live Houdini), which currently covers ~55%. Floor is set below
# that to catch real regressions without failing on the integration gap; raise
# it as unit coverage grows.
fail_under = 50
show_missing = true
# Mypy configuration
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
no_strict_optional = true
exclude = ["tests/", "build/"]
# Bandit security configuration
[tool.bandit]
exclude_dirs = ["tests", "build", "dist"]
# Each skip below is an intentional, non-actionable pattern in this codebase:
# B101 - assert statements are fine in tests
# B102 - exec: executing Houdini Python is the core purpose of the execute_code tool
# B104 - hardcoded_bind_all_interfaces: the 0.0.0.0 HTTP bind in server.py is intentional
# B110 - try_except_pass: defensive guards around optional Houdini (hou) APIs
# B112 - try_except_continue: defensive guards that skip failed items in render loops
# B311 - non-crypto random: used for jitter/ids, never for security
skips = ["B101", "B102", "B104", "B110", "B112", "B311"]