Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (89 loc) · 2.55 KB
/
Copy pathpyproject.toml
File metadata and controls
100 lines (89 loc) · 2.55 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
[project]
name = "llm-synthesis"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [{ name = "samgleason", email = "samuel.gleason@entalpic.ai" }]
requires-python = ">=3.11"
dependencies = [
"anthropic==0.109.2",
"cmcrameri>=1.9",
"datasets>=5.0.0",
"docling>=2.31.2",
"dspy>=2.6.24",
"einops>=0.8.2",
"fastapi>=0.116.1",
"fsspec>=2025.3.0",
"gcsfs>=2025.3.0",
"google-genai>=1.63.0",
"hydra-core>=1.3.2",
"jupyterlab>=4.4.2",
"litellm>=1.89.2",
"matplotlib>=3.10.3",
"mistralai>=1.7.0",
"pandas>=2.2.3",
"peft>=0.18.1",
"pingouin>=0.5.5",
"playwright>=1.54.0",
"plotly>=6.2.0",
"pymupdf>=1.25.5",
"python-dotenv>=1.0.0",
"scikit-learn>=1.7.1",
"seaborn>=0.13.2",
"streamlit>=1.58.0",
"timm>=1.0.24",
"torch>=2.5.0,<2.12.0",
# Capped below 5.0: transformers>=5.0 drops the default
# `forced_bos_token_id` attribute from PreTrainedConfig, which breaks
# Florence-2's trust_remote_code=True config loading (models/florence.py).
# Within the 4.x range the resolver is free to pick whatever is compatible
# with litellm's tokenizers pin (currently 4.57.6 against tokenizers
# 0.22.2); lift the cap once florence.py works on the 5.x config API.
"transformers>=4.38.0,<5.0.0",
"typer>=0.15",
"wordcloud>=1.9.4",
]
[project.scripts]
lemat-synth = "llm_synthesis.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/llm_synthesis"]
[dependency-groups]
data = ["arxiv>=2.2.0", "chemrxiv>=0.1.2"]
dev = [
"markdown-callouts>=0.4",
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.25",
"nbstripout>=0.8.1",
"ruff>=0.12.8",
"ipykernel>=6.29.5",
"ipython>=9.2.0",
"ipywidgets>=8.1.7",
"pre-commit>=4.2.0",
"nltk>=3.9.4",
]
# Ruff global configuration for linting & formatting
# --------------------------------------------------------
[tool.ruff]
# Target Python version
target-version = "py311"
# Line length (black formatter convention)
line-length = 80
[tool.ruff.lint]
# Ruff-specific rules (`RUF`), isort (`I`), pycodestyle (`E`), and more common rulesets
select = ["E", "F", "I", "N", "UP", "RUF"]
ignore = ["RUF001", "RUF002", "RUF003"]
# Allow autofix for all enabled rules
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
# Quote style
quote-style = "double"
# Indent style
indent-style = "space"
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["F401"]
"*.ipynb" = ["ALL"]