-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (90 loc) · 3.1 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (90 loc) · 3.1 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
95
96
97
98
99
100
[project]
name = "spellbook"
dynamic = ["version"]
description = "Harness-augmentation layer for AI coding assistants: skills, commands, hooks, and a shared MCP server"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"websockets>=16.0",
"sqlalchemy[asyncio]>=2.0.49,<2.1",
"aiosqlite>=0.20.0,<0.23",
"alembic>=1.18.4,<1.19",
"rich>=15.0.0",
"claude-agent-sdk",
]
[project.optional-dependencies]
claude = ["claude-agent-sdk"]
gemini = []
[dependency-groups]
daemon = [
"fastmcp>=3.3.1",
"fastapi>=0.136.1",
"uvicorn>=0.46.0",
"httpx>=0.28.1",
]
dev = [
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.1.0",
"pytest-timeout>=2.4.0",
"httpx>=0.28.1",
"pytest-tripwire[http]>=0.21.1",
"dirty-equals>=0.11",
"fastmcp>=3.3.1",
"fastapi>=0.136.1",
"pyyaml>=6.0.3",
"ruff>=0.6.0",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.7.6",
"mike>=2.2.0",
]
[project.scripts]
spellbook = "spellbook.cli.main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = ".version"
pattern = "(?P<version>.+)"
[tool.hatch.build.targets.wheel]
packages = ["spellbook", "spellbook_mcp"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
timeout = 30
addopts = "-m 'not docker and not integration and not slow and not external'"
markers = [
"integration: marks tests as integration tests (skipped locally, runs in CI)",
"docker: marks tests that require Docker or heavy platform fixtures (CI only)",
"slow: marks tests with deliberate sleeps > 0.5s (skipped locally, runs in CI)",
"external: marks tests requiring external tools like Claude CLI (skipped locally)",
"windows_only: test runs only on Windows (skipped on POSIX systems)",
"posix_only: test runs only on POSIX systems (skipped on Windows)",
"gate_killswitch: test exercises the security-gate operator kill switch; opts out of the force-gates-on fixture",
"allow_real_config_write: test deliberately writes the real user config; opts out of the real-config isolation guard",
]
[tool.tripwire]
guard = "error"
# SocketPlugin intercepts socket.socket.close on the active verifier. The
# asyncio.run-driven loop teardown inside sync task entry points closes
# its self-pipe socket after the sandbox's active verifier is set, which
# makes tripwire blow up with UnmockedInteractionError on loop shutdown.
# No test in this repo uses tripwire.socket; disabling the plugin
# globally lets HttpPlugin-only tests drive asyncio.run() safely.
disabled_plugins = ["socket"]
[tool.tripwire.firewall]
allow = ["socket:*", "database:*", "db:*", "subprocess:*", "http:*", "dns:*"]
[tool.ruff]
line-length = 100
# NOTE: target-version follows the code, not requires-python. The codebase
# uses 3.11 syntax even though `requires-python = ">=3.10"`. The mismatch is
# pre-existing and out of scope for the ruff bundling task.
target-version = "py311"
extend-exclude = [
"spellbook/db/migrations/versions",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]