-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (74 loc) · 1.98 KB
/
pyproject.toml
File metadata and controls
85 lines (74 loc) · 1.98 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 = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "medical-calc-mcp"
version = "1.5.0"
description = "DDD-architected medical calculator MCP server with intelligent tool discovery"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.11"
authors = [
{ name = "u9401066" }
]
keywords = [
"medical",
"calculator",
"mcp",
"model-context-protocol",
"clinical",
"healthcare",
"ddd"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Healthcare Industry",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
dependencies = [
"mcp[cli]>=1.22.0",
"pydantic>=2.11.0,<3.0.0",
"starlette>=0.32.0",
"uvicorn>=0.38.0",
"sse-starlette>=2.0.0",
"fastapi>=0.115.0",
# Note: networkx is optional (tool_graph.py has fallback)
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.23.0",
"mypy>=1.8.0",
"ruff>=0.2.0",
]
# Note: NO ML dependencies (torch, transformers) required
# networkx is pure Python, ~2MB, no native compilation
[project.scripts]
medical-calc-mcp = "src.infrastructure.mcp.server:main"
medical-calc-api = "src.infrastructure.api.server:main"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.ruff]
line-length = 160
target-version = "py311"
[tool.ruff.lint]
select = ["F", "I", "N", "W", "UP"]
ignore = ["UP045", "E501", "E402", "N818"] # Allow long lines, late imports, exception naming
[tool.mypy]
python_version = "3.11"
strict = true
[tool.bandit]
exclude_dirs = ["tests", ".venv"]
skips = ["B101"] # Allow assert statements
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[dependency-groups]
dev = [
"mkdocs-awesome-pages-plugin>=2.10.1",
]