-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (72 loc) · 2.04 KB
/
Copy pathpyproject.toml
File metadata and controls
85 lines (72 loc) · 2.04 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "nx-mcp"
version = "0.2.0.dev0"
description = "MCP server for Siemens NX (UG) CAD operations"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
dependencies = [
"mcp>=2.2,<3",
"pydantic>=2.12,<3",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"pytest-cov>=5.0",
"ruff>=0.15,<0.16",
"mypy>=1.11,<2",
"pre-commit>=3.5",
]
[project.scripts]
nx-mcp = "nx_mcp.server:main"
nx-mcp-smoke = "nx_mcp.real_smoke:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = ["-ra", "--strict-markers"]
markers = [
"integration: exercises an MCP or bridge boundary without a live NX session",
"fake_nx: exercises a fake NXOpen implementation and is not real-NX validation",
"legacy: covers opt-in 0.1 legacy tools outside the certified default surface",
"real_nx: requires a dedicated Windows runner with Siemens NX and a started bridge",
]
[tool.coverage.run]
branch = true
relative_files = true
source = ["nx_mcp"]
[tool.coverage.report]
fail_under = 78
show_missing = true
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "C4", "SIM"]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["nx_mcp"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.10"
warn_unreachable = true
warn_redundant_casts = true
warn_unused_ignores = false
# NX-runtime modules depend on the Siemens NXOpen SDK, which ships only inside a
# live NX session (Windows) and has no type stubs. They cannot be statically
# type-checked in CI, so they are excluded from the gate.
exclude = [
"src/nx_mcp/nx_bridge.py",
"src/nx_mcp/tools/",
]
[[tool.mypy.overrides]]
# NXOpen is injected at runtime inside NX; treat it as untyped rather than erroring.
module = "NXOpen.*"
ignore_missing_imports = true