-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (111 loc) · 2.2 KB
/
Copy pathpyproject.toml
File metadata and controls
121 lines (111 loc) · 2.2 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "localrag"
version = "0.1.0"
description = "Offline-first RAG system. Your documents, your models, your machine."
readme = "README.md"
requires-python = ">=3.13"
license = "MIT"
authors = [
{ name = "Pablo Jesus Gonzalez Rubio", email = "gonzrubio.pablo@gmail.com" },
]
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.34",
"typer>=0.15",
"chromadb>=1.0",
"httpx>=0.28",
"pypdf>=5.4",
"python-docx>=1.1",
"pydantic-settings>=2.8",
"rich>=13",
"charset-normalizer>=3.4",
"sse-starlette>=2.2",
"prometheus-client>=0.25.0",
"structlog>=25.5.0",
"openai>=2.33.0",
"anthropic>=0.97.0",
"ragas>=0.4.3",
"rank-bm25>=0.2.2",
]
[project.scripts]
localrag = "localrag.cli.app:app"
[dependency-groups]
dev = [
"ruff",
"pytest",
"pytest-asyncio",
"respx",
"pre-commit",
"pytest-cov>=7.1.0",
"bandit>=1.9.4",
"mypy>=1.20.2",
]
[tool.ruff]
target-version = "py313"
line-length = 100
exclude = ["evals/"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"BLE001",
"COM812",
"ISC001",
"D100",
"D104",
"D105",
"D107",
"D205",
"D211",
"D212",
"ANN204",
"ANN401",
"S602",
"ERA001",
"PGH003",
"PLR0913",
"TRY400",
"N803",
"N815",
"D101",
"D102",
"D103",
"TC001",
"TC002",
"TC003",
"S101",
"B008",
"FAST002",
"FBT001",
"INP001",
"PERF401",
"ARG002",
"EM101",
"PLR2004",
"PLW0108",
"S104",
"TRY003",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
markers = [
"integration: requires a running Docker stack",
]
[tool.coverage.run]
source = ["localrag"]
# Keep coverage focused on the application core.
# CLI modules are thin wrappers around services and are intentionally tested via
# service/API tests rather than by executing the CLI entrypoints themselves.
omit = [
"localrag/cli/*",
"localrag/cli/**",
"localrag/ingestion/parsers/pdf.py",
]
[tool.coverage.report]
exclude_lines = ["pragma: no cover"]