-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (70 loc) · 2.15 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (70 loc) · 2.15 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "notebookai"
version = "0.1.0"
description = "NotebookAI backend — local-first LLM-powered knowledge base."
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Jesper", email = "jesper_vang@me.com" }]
dependencies = [
"pydantic>=2.5,<3",
"sqlalchemy>=2.0,<3",
"watchfiles>=0.21",
"structlog>=23.2",
"typer>=0.12",
"sentence-transformers>=3.0",
"sqlite-vec>=0.1.6",
"numpy>=1.26",
"python-ulid>=2.0",
"pymupdf>=1.24",
"pdfminer.six>=20231228",
"httpx>=0.27",
"beautifulsoup4>=4.12",
"lxml>=4.9",
"readability-lxml>=0.8.1",
"html2text>=2024.2.26",
"youtube-transcript-api>=0.6.2",
# Pinned to the 0.1.x line: the SDK is pre-1.0 and ships breaking changes
# within minors. Bump deliberately after re-running tests/test_agent.py.
"claude-agent-sdk>=0.1.76,<0.2",
"fastapi>=0.115",
"uvicorn[standard]>=0.30",
"pydantic-settings>=2.1",
"sse-starlette>=2.1",
"python-multipart>=0.0.9",
]
[project.scripts]
notebookai = "notebookai.cli:app"
notebookai-api = "notebookai.api.main:run"
[dependency-groups]
dev = [
"pytest>=7.4",
"ruff>=0.5",
"pytest-asyncio>=0.23",
"pillow>=12.2.0",
# Sidecar build tool — used by desktop/sidecar/build.py to produce a
# single-file binary so the Tauri app ships without requiring `uv` on
# the user's machine. Dev-only because it's never imported by runtime code.
"pyinstaller>=6.6",
]
[tool.hatch.build.targets.wheel]
packages = ["notebookai"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = [
"UP007", # X | Y union syntax — keep typing.Union for explicit long unions
"B008", # FastAPI/Typer use call expressions in defaults idiomatically
"E501", # line length is enforced by formatter, not the linter, so a few overflows in tables/messages are fine
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
asyncio_mode = "auto"
markers = [
"requires_claude: live test against Claude Agent SDK (skipped by default)",
]