-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (89 loc) · 2.65 KB
/
pyproject.toml
File metadata and controls
94 lines (89 loc) · 2.65 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
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[project]
name = "governance-mcp"
version = "2.13.0"
description = "UNITARES Governance MCP server"
requires-python = ">=3.12"
dependencies = [
"mcp>=1.26.0,<2.0.0",
"numpy>=1.24.0,<3.0.0",
# governance_core (EISV ODE engine) lives in this repo at top-level
# governance_core/ — pure Python, no separate install needed. The package
# was previously a separate private compiled wheel (CIRWEL/unitares-core);
# folded back in 2026-04-24 once IP-protection rationale dissolved.
# The unitares-core repo remains as an archived historical reference at v2.3.0.
]
[project.optional-dependencies]
full = [
"uvicorn>=0.30.0",
"starlette>=0.37.0",
"websockets>=12.0",
"psutil>=5.9.0",
"aiofiles>=23.2.1",
"orjson>=3.9.0",
"prometheus-client>=0.19.0",
"asyncpg>=0.29.0",
"redis>=5.0.0",
"sentence-transformers>=2.2.0",
"requests>=2.31.0",
"python-dotenv>=1.0.0",
]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.21.0",
"hypothesis>=6.0.0",
]
analysis = [
"scipy>=1.10.0",
"matplotlib>=3.7.0",
"editdistance>=0.6.0",
]
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
testpaths = ["tests", "agents"]
pythonpath = [".", "agents/sdk/src"]
addopts = ["-v"]
# Coverage is opt-in: `make test`, `scripts/dev/test-cache.sh`, and CI pass
# `--cov=...` / `--cov-fail-under=25` explicitly. Enabling it in addopts caused
# `pytest --collect-only` to measure ~14% and fail the gate (no tests run).
# HTML: add `--cov-report=html` to a full run when needed (22MB+ per run).
markers = [
"smoke: Fast smoke tests for pre-push validation (target <60s)",
]
filterwarnings = [
"ignore::ResourceWarning",
"ignore:unclosed database:ResourceWarning",
"ignore::pytest.PytestReturnNotNoneWarning",
# Unawaited-coroutine leak enforcement lives in tests/conftest.py via
# pytest_warning_recorded + pytest_sessionfinish. filterwarnings cannot
# catch these because pytest wraps every test in catch_warnings(record=True),
# which stores warnings in a log and bypasses "error:" promotion.
]
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/archive/*",
"*/demos/*",
"*/scripts/*",
"setup.py",
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.",
"if TYPE_CHECKING:",
"@abstractmethod",
]