-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (94 loc) · 3.58 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (94 loc) · 3.58 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
101
102
103
104
105
106
107
108
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "codebase-index"
dynamic = ["version"]
description = "A precise local codebase map for AI coding agents: find, trace, and predict with file-line evidence."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "codebase-index contributors" }]
keywords = [
"claude-code", "codex-cli", "opencode", "mcp", "code-search",
"semantic-code-search", "codebase-indexing", "codebase-rag", "ai-agents",
"local-first", "tree-sitter", "rag", "sqlite", "fts5", "cli",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: Text Processing :: Indexing",
]
# Core deps are intentionally small and pure-local. No network libs in the base install.
dependencies = [
"typer>=0.12", # CLI framework
"rich>=13.0", # pretty terminal output (humans only; --json stays plain)
"pydantic>=2.6", # config + result schemas
"pathspec>=0.12", # .gitignore-style matching for ignore files
"tree-sitter==0.25.2", # AST parsing core; pinned to keep goldens stable
"tree-sitter-language-pack==1.8.1", # bundled grammars; pinned to keep CI/local stable
]
[project.optional-dependencies]
# Optional, OPT-IN vector backend. Never installed/used unless the user enables it.
embeddings = [
"numpy>=1.26",
"sqlite-vec>=0.1", # vector search as a SQLite extension (stays local)
]
embeddings-local = [
"sentence-transformers>=3.0", # local model, still no external API
]
watch = ["watchdog>=4.0"]
mcp = ["mcp>=1.0"]
dev = ["pytest>=8.0", "pytest-cov>=5.0", "ruff>=0.5", "mypy>=1.10", "pyyaml>=6.0", "mcp>=1.0"]
build = ["build>=1.2", "twine>=5.0"]
[project.scripts]
codebase-index = "codebase_index.cli:app"
cbx = "codebase_index.cli:app" # short alias
codebase-index-mcp = "codebase_index.mcp.server:run" # standalone MCP entry point
[project.urls]
Homepage = "https://github.com/denfry/codebase-index"
Documentation = "https://github.com/denfry/codebase-index/tree/main/docs"
Changelog = "https://github.com/denfry/codebase-index/blob/main/CHANGELOG.md"
Issues = "https://github.com/denfry/codebase-index/issues"
[tool.hatch.version]
path = "src/codebase_index/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/codebase_index"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
# Keep the pre-0.16 default profile explicit. Ruff 0.16 expanded its implicit
# defaults substantially; upgrades must not silently redefine this CI gate.
select = ["E4", "E7", "E9", "F"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --cov=codebase_index --cov-report=term-missing --cov-fail-under=80"
markers = [
"slow: marks tests as slow (deselected unless --runslow is passed)",
]
[tool.coverage.run]
branch = true
source = ["src/codebase_index"]
omit = ["*/skill_template/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
[tool.mypy]
python_version = "3.11"
warn_unused_configs = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["watchdog.*", "sqlite_vec.*", "sentence_transformers.*"]
ignore_missing_imports = true