-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (55 loc) · 1.28 KB
/
Copy pathpyproject.toml
File metadata and controls
65 lines (55 loc) · 1.28 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "citation-machine"
version = "0.3.0"
description = "A thin citation ingestion and retrieval client backed by NEXUS"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
dependencies = [
"nexus[citation]>=0.7.0",
"pypandoc-binary==1.17",
"citeproc-py-styles==0.1.5",
]
[project.optional-dependencies]
learned = [
"torch>=2.6,<3",
"transformers==5.8.1",
"tokenizers>=0.22.0,<=0.23.0",
"safetensors>=0.4,<1",
]
exa = [
"openai>=2,<3",
"python-dotenv>=1,<2",
]
dev = [
"defusedxml>=0.7,<1",
"pypdf>=6.16.2,<7",
"pytest>=7.4",
"pytest-cov>=4.1",
"ruff>=0.6",
]
[project.scripts]
citation-machine = "citation_machine.cli:main"
citation-machine-evaluate = "citation_machine.evaluation:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
citation_machine = ["data/*.json"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra -q"
[tool.coverage.run]
source = ["citation_machine"]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 90
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]