-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (66 loc) · 2.41 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (66 loc) · 2.41 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
[project]
name = "blender-mcp-n8n"
version = "0.1.0"
description = "A Model Context Protocol (MCP) server that exposes Blender's 3D modeling capabilities to n8n workflows."
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"mcp>=1.0.0",
"starlette>=0.27.0",
"uvicorn>=0.23.0",
"sse-starlette>=1.6.0",
"python-dotenv>=1.0.0",
"click>=8.1.7",
"httpx>=0.27.0",
"anthropic>=0.50.0",
"python-multipart>=0.0.9",
]
# ── Dev dependencies (used in CI and local development) ──────────────────────
[dependency-groups]
dev = [
"ruff>=0.5.0",
"mypy>=1.10.0",
]
# ── Ruff: linting + formatting + complexity ───────────────────────────────────
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes (undefined names, unused imports)
"W", # pycodestyle warnings
"C90", # mccabe cyclomatic complexity
"I", # isort (import ordering)
"N", # pep8-naming
"UP", # pyupgrade (modernise Python syntax)
"B", # flake8-bugbear (likely bugs & design issues)
]
ignore = [
"E501", # line too long — handled by formatter (line-length above)
]
[tool.ruff.lint.mccabe]
# Flag any function with cyclomatic complexity above 12.
# Blender server.py dispatch functions are intentionally higher; use
# # noqa: C901 inline for those specific cases.
max-complexity = 12
[tool.ruff.lint.per-file-ignores]
# blender_mcp_addon uses Blender's mandatory naming conventions (bl_info,
# register/unregister, UPPER_CASE class names for operators, etc.)
# Suppress all naming-convention and complexity warnings inside the addon.
"blender_mcp_addon/**" = ["N", "C901"]
# Test scenarios use expressive variable names and run/verify functions; relax naming and complexity.
"tests/**" = ["N", "C901"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
# ── Mypy: static type checking (src/ only — bpy has no public stubs) ─────────
[tool.mypy]
python_version = "3.10"
# bpy, mcp internals, and some starlette generics lack stubs — silence them.
ignore_missing_imports = true
# Start with a relaxed baseline; tighten gradually as annotations are added.
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = false