Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (64 loc) · 1.41 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (64 loc) · 1.41 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 = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "codebrain"
version = "0.1.0"
description = "LSP-based code validation and structural syntax search"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
license-files = ["LICENSE"]
dependencies = [
"pydantic>=2.0",
"lsprotocol>=2023.0.0",
]
[project.optional-dependencies]
search = [
"tree-sitter>=0.24.0",
"tree-sitter-python>=0.23.0",
"tree-sitter-javascript>=0.23.0",
"tree-sitter-typescript>=0.23.0",
"tree-sitter-c>=0.23.0",
"tree-sitter-cpp>=0.23.0",
"tree-sitter-go>=0.23.0",
]
mcp = [
"fastmcp>=2.0.0",
]
watch = [
"watchfiles>=1.0.0",
]
all = [
"codebrain[mcp,search,watch]",
]
[project.scripts]
codebrain-mcp = "codebrain.mcp.cli:main"
codebrain = "codebrain.mcp.cli:main"
[dependency-groups]
dev = [
"codebrain[mcp,search]",
"pytest>=9.0",
"pytest-asyncio>=1.3.0",
"pyright>=1.1.400",
"ruff>=0.9.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/codebrain"]
[tool.pyright]
pythonVersion = "3.11"
venvPath = "."
venv = ".venv"
typeCheckingMode = "standard"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = [
"mcp_stdio: MCP stdio integration tests",
"scenario: scenario tests requiring external projects",
]