forked from omarfarouk228/togolm
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (73 loc) · 1.82 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (73 loc) · 1.82 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
[project]
name = "togolm"
version = "0.1.0"
description = "First open-source AI infrastructure focused on Togo"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
dependencies = [
# Scraping
"scrapy>=2.11",
"beautifulsoup4>=4.12",
"lxml>=5.1",
"httpx>=0.27",
# Database
"psycopg2-binary>=2.9",
"pgvector>=0.3",
"sqlalchemy>=2.0",
# API
"fastapi>=0.111",
"uvicorn[standard]>=0.30",
"pydantic[email]>=2.7",
"python-dotenv>=1.0",
# AI
"google-genai>=2.3.0",
"sentence-transformers>=5.5.0",
# Tasks
"celery>=5.4",
"redis>=5.0",
# Utils
"tqdm>=4.66",
"python-slugify>=8.0",
"pdfminer-six>=20260107",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"httpx>=0.27",
"ruff>=0.4",
]
# Install in a GPU environment (Colab, cloud VM) — not needed locally
finetuning = [
"transformers>=4.44",
"peft>=0.12",
"trl>=0.10",
"bitsandbytes>=0.43",
"datasets>=2.21",
"accelerate>=0.34",
"huggingface_hub>=0.23",
]
[tool.hatch.build.targets.wheel]
packages = ["corpus", "api", "finetuning"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.ruff.lint.per-file-ignores]
# Jupyter notebooks may have style issues that can't be fixed without reformatting cells
"*.ipynb" = ["E501", "E741", "F401", "I001"]
# SQL strings, regex patterns, and docstrings may exceed line limit
"api/app/routers/*.py" = ["E501"]
"api/tests/*.py" = ["E501"]
"corpus/processors/ingestor.py" = ["E501"]
"corpus/scrapers/spiders/*.py" = ["E501"]
"finetuning/**/*.py" = ["E501"]
"scripts/*.py" = ["E501"]
[tool.pytest.ini_options]
testpaths = ["api/tests"]
pythonpath = ["."]