-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (77 loc) · 2.5 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (77 loc) · 2.5 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
[project]
name = "openclaude-mcp"
version = "0.1.0"
description = "MCP control plane for OpenClaude — run Claude Code harness against local Ollama models. Zero cloud token cost. KAIROS autoDream. ULTRAPLAN relay."
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [{name = "Sandra Schi", email = "sandraschi@github"}]
dependencies = [
"fastmcp>=3.2.0",
"httpx>=0.27.0",
"starlette>=1.0.0",
"uvicorn[standard]>=0.30.0",
"anyio>=4.4.0",
"psutil>=6.0.0",
"filelock>=3.13.0", # MEMORY.md race condition fix (TODO.md fix 2a)
"prefab-ui>=0.14.0",
]
[project.optional-dependencies]
apps = [
"fastmcp[apps]>=3.2.0", # pulls prefab-ui for rich Prefab UI rendering
]
dev = [
"ruff>=0.4.0",
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-anyio>=0.0.0",
"httpx>=0.27.0",
"respx>=0.21.0",
"bandit>=1.7.0",
"semgrep>=1.68.0",
"safety>=3.0.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/openclaude_mcp"]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
# Hardened v13.1 Rule Set
select = [
"E", "F", "I", "UP", "B", "S", "A", "ANN", "COM", "C4", "DTZ", "PIE", "T20", "PYI", "Q", "RSE", "RET", "SLF", "SIM", "TID", "ARG", "PTH", "ERA", "PD", "PGH", "PL", "TRY", "FLY", "PERF", "FURB", "LOG", "RUF"
]
ignore = [
"ANN101", # Missing type annotation for self
"ANN102", # Missing type annotation for cls
"COM812", # Trailing comma missing (handled by formatter)
"ISC001", # Single line implicit string concatenation (handled by formatter)
"PLR0913", # Too many arguments
"S101", # Use of assert (standard for pytest)
"TRY003", # Avoid specifying long messages in exceptions
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "ANN", "PLR", "TRY", "S105", "S106", "SLF001", "ARG002", "PLC0415"]
"server.py" = ["T20", "ARG001", "ARG002"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--tb=short -q"
markers = [
"unit: fast unit tests, no external deps",
"integration: requires Ollama running on :11434",
"smoke: requires server running on :10932",
"e2e: requires Ollama + openclaude on PATH",
"requires_ollama: requires Ollama running with a model pulled",
]