-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (64 loc) · 1.97 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (64 loc) · 1.97 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
# PyPI distribution name (`pip install syntha-ehr`) is separate from the
# import name (`import syntha`). The plain "syntha" name was already taken
# on PyPI when we tried to claim it. The longer name is more descriptive
# anyway — "syntha for electronic health records".
name = "syntha-ehr"
version = "0.5.10"
description = "Synthetic patient record generator (Synthea-inspired) trained on pristine-healthy episode data"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.10"
authors = [{ name = "Ario Moniri" }]
dependencies = [
"pandas>=2.0",
"numpy>=1.24",
"scipy>=1.10",
"scikit-learn>=1.3",
"click>=8.0",
"pyyaml>=6.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=7.1.0",
"matplotlib>=3.7",
"ruff>=0.8",
"pre-commit>=4.0",
]
mcp = [
# Model Context Protocol SDK (Anthropic) — runs the syntha-mcp server
# that lets Claude Desktop, Claude.com custom connectors, mcp-cli,
# Cursor, Continue etc. drive synthetic-cohort generation.
"mcp>=1.2",
]
[project.scripts]
syntha = "syntha.cli:main"
syntha-mcp = "syntha.mcp_server:main"
[tool.setuptools.package-data]
"syntha.bundled_models" = ["*.json"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 100
target-version = "py310"
extend-exclude = ["app/src/model_*.json", "output/", "examples/sample_output/"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "UP", "C4", "SIM"]
ignore = [
"E501", # line-too-long — we use 100 but allow some leniency
"B008", # function calls in argument defaults (click decorators)
"SIM108", # ternary suggestion can hurt readability
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["E501", "B011", "B017"]
"scripts/*" = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --tb=short"
filterwarnings = [
"ignore::DeprecationWarning",
]