-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (109 loc) · 2.8 KB
/
pyproject.toml
File metadata and controls
118 lines (109 loc) · 2.8 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
109
110
111
112
113
114
115
116
117
118
[project]
name = "agent-library"
version = "0.13.0"
description = "Multi-modal knowledge library with vector and full-text search for text, code, images, and PDFs"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10"
authors = [
{ name = "Arcade.dev", email = "dev@arcade.dev" }
]
keywords = ["markdown", "code", "search", "vector", "embeddings", "mcp", "ai", "multimodal", "knowledge-management"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Indexing",
]
dependencies = [
"arcade-mcp-server>=1.21.0",
"arcade-tdk>=3.8.0",
"sentence-transformers>=2.2.0",
"sqlite-vec>=0.1.0",
"pyyaml>=6.0",
"python-frontmatter>=1.0.0",
"numpy>=1.24.0",
"typer>=0.9.0",
"rich>=13.0.0",
]
[project.scripts]
librarian = "librarian.cli:app"
libr = "librarian.cli:app"
[project.optional-dependencies]
dev = [
"pytest>=8.3.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.25.0",
"mypy>=1.5.1",
"pre-commit>=3.4.0",
"ruff>=0.7.4",
"types-pyyaml>=6.0.1",
]
code = [
"tree-sitter>=0.21.0",
"tree-sitter-python>=0.21.0",
"tree-sitter-javascript>=0.21.0",
"transformers>=4.30.0",
"torch>=2.0.0",
]
pdf = [
"pypdf>=4.0.0",
]
ocr = [
"pytesseract>=0.3.10",
"Pillow>=10.0.0",
]
vision = [
"Pillow>=10.0.0",
"torch>=2.0.0",
"transformers>=4.30.0",
"torchvision>=0.15.0",
]
all = [
"agent-library[code,pdf,ocr,vision]",
]
evals = [
"arcade-mcp[evals]>=1.14.0",
]
docs = [
"mkdocs>=1.6.0",
"mkdocs-material>=9.5.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["librarian"]
[tool.mypy]
files = ["librarian/**/*.py"]
exclude = ["librarian/cli\\.py$"] # CLI wraps decorated server functions
python_version = "3.10"
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = false
show_error_codes = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow (loads real embedding model)",
]
addopts = "-m 'not slow'"
[tool.coverage.report]
skip_empty = true
# Ruff configuration is in .ruff.toml
[tool.coverage.run]
source = ["librarian"]
omit = ["librarian/__pycache__/*"]