-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (110 loc) · 2.53 KB
/
pyproject.toml
File metadata and controls
121 lines (110 loc) · 2.53 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
119
120
121
[project]
name = "4dpocket"
version = "0.2.2"
description = "Self-hosted AI-powered personal knowledge base"
requires-python = ">=3.12"
license = {text = "GPL-3.0"}
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"sqlmodel>=0.0.22",
"alembic>=1.14.0",
"pydantic-settings>=2.6.0",
"PyJWT>=2.9.0",
"bcrypt>=4.0.0",
"httpx>=0.27.0",
"huey>=2.5.0",
"python-multipart>=0.0.12",
"email-validator>=2.0.0",
"readability-lxml>=0.8.1",
"openai>=1.50.0",
"lxml>=5.0.0",
"lxml-html-clean>=0.4.0",
"mcp>=1.12",
"tldextract>=5.1.0",
"trafilatura>=1.12.0",
]
[project.scripts]
"4dpocket" = "fourdpocket.cli:main"
[project.optional-dependencies]
postgres = [
"psycopg2-binary>=2.9.0",
]
semantic = [
"chromadb>=0.5.0",
"sentence-transformers>=3.0.0",
]
processors = [
"yt-dlp>=2024.0.0",
"youtube-transcript-api>=0.6.0",
"instaloader>=4.10",
"gallery-dl>=1.27.0",
"playwright>=1.40.0",
"pytesseract>=0.3.10",
"PyMuPDF>=1.24.0",
"pymupdf4llm>=0.0.17",
"Pillow>=10.0.0",
"curl_cffi>=0.7.0",
]
meilisearch = [
"meilisearch>=0.31.0",
]
pgvector = [
"pgvector>=0.3.0",
]
reranker = [
"sentence-transformers>=3.0.0",
]
all = [
"4dpocket[postgres,semantic,processors,meilisearch,pgvector,reranker]",
]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.0.0",
"respx>=0.21.0",
"ruff>=0.7.0",
"mypy>=1.13.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/fourdpocket"]
[tool.hatch.build.hooks.custom]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-n auto --dist=loadscope"
markers = [
"slow: marks tests that take >5s (deselect with -m 'not slow')",
"integration: marks integration tests requiring full app stack",
"security: marks security-critical tests",
"ai: marks tests requiring AI provider mocks",
]
[tool.coverage.run]
source = ["src/fourdpocket"]
branch = true
omit = [
"src/fourdpocket/__main__.py",
"src/fourdpocket/cli.py",
]
[tool.coverage.report]
show_missing = true
skip_empty = true
fail_under = 85 # Target: 90%. Currently at 86%.
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__",
"@overload",
]
[tool.coverage.html]
directory = "htmlcov"
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W"]
ignore = ["E501", "E402", "N814"]