-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (98 loc) · 2.39 KB
/
pyproject.toml
File metadata and controls
111 lines (98 loc) · 2.39 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
[project]
name = "journal-utilities"
version = "0.1.0"
description = "Transcription, entity extraction, and processing pipeline for the Active Inference Journal"
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
authors = [
{ name = "Holly Grimm", email = "Holly@ActiveInference.Institute" },
{ name = "Daniel Ari Friedman", email = "Daniel@ActiveInference.Institute" },
{ name = "Active Inference Institute" }
]
dependencies = [
# Transcription pipeline (includes PyTorch with CUDA 12.8 support)
"whisperx @ git+https://github.com/m-bain/whisperX.git",
"yt-dlp>=2025.9.26",
"numpy>=2.0.2",
"pandas>=2.2.3",
"omegaconf>=2.3.0",
"pyytdata>=0.1.0",
# Entity extraction (JournalRAG)
"cohere>=5.11.0",
"pydantic>=2.6.0",
"pydantic-settings>=2.1.0",
"structlog>=25.5.0",
"rich>=14.2.0",
# Shared dependencies
"python-dotenv>=1.0.0",
"surrealdb>=1.0.6",
# YouTube channel download
"youtube-transcript-api>=0.6.0",
]
[project.optional-dependencies]
transcribe-local = [
"mlx-whisper>=0.4.0",
]
interface = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.34.0",
"httpx>=0.28.0",
]
export = [
"fpdf2>=2.8.0",
]
dev = [
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"black>=25.9.0",
"ruff>=0.2.0",
"mypy>=1.8.0",
"ipython>=9.6.0",
]
[project.scripts]
journal-ui = "journal_utilities.interface.app:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/journal_utilities"]
[dependency-groups]
dev = [
"ipython>=9.5.0",
]
[tool.black]
line-length = 100
target-version = ["py312"]
[tool.ruff]
line-length = 100
target-version = "py312"
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"ANN", # flake8-annotations
"B", # flake8-bugbear
"A", # flake8-builtins
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
python_files = ["test_*.py"]
addopts = "-v --cov=src --cov-report=term-missing"
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true