-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (84 loc) · 2.2 KB
/
pyproject.toml
File metadata and controls
96 lines (84 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
[project]
name = "paper2layout"
description = ""
version = "0.1.0"
readme = "README.md"
requires-python = ">=3.10.12"
dependencies = [
"beautifulsoup4>=4.13.4",
"dataclasses-json>=0.6.7",
"faiss-cpu>=1.11.0",
"fastcluster>=1.3.0",
"httpx==0.27.2", # cf.) https://community.openai.com/t/error-with-openai-1-56-0-client-init-got-an-unexpected-keyword-argument-proxies/1040332/2
"hydra-core>=1.3.2",
"joblib>=1.5.0",
"kaleido==0.2.1",
"msgspec>=0.19.0",
"numpy>=2.2.5",
"openai>=1.78.1",
"pillow>=11.2.1",
"plotly>=6.1.2",
"polars>=1.30.0",
"pot>=0.9.5",
"pycocotools>=2.0.8",
"pymupdf>=1.27.2.2",
"python-pptx>=1.0.2",
"pytorch-fid>=0.3.0",
"scikit-learn>=1.6.1",
"scipy>=1.15.3",
"seaborn>=0.13.2",
"sentencepiece>=0.2.0",
"streamlit>=1.45.1",
"tabulate>=0.9.0",
"tiktoken>=0.9.0",
"torch>=2.4.0",
"torchvision>=0.19.0",
"tqdm>=4.67.1",
"transformers>=4.52.4",
"wandb>=0.20.1",
]
[dependency-groups]
dev = [
"mypy>=1.15.0",
"ruff>=0.11.9",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
package = false
[tool.ruff]
line-length = 88 # default characters
indent-width = 4
target-version = "py39" # The minimum Python version to target
src = ["src", "scripts"]
[tool.ruff.lint]
select = ["E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # flake8
"D", # pydocstyle
"I", # isort
# "RET", # flake8-return
# "RUF", # ruff rules
]
ignore = ["E203", "E501", "D10", "D212", "D415"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-rA -x --doctest-modules --color=yes --cov=inspect_ai"
testpaths = ["tests"]
doctest_optionflags = ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
[tool.mypy]
python_version = 3.9
[tool.hatch.build.targets.wheel]
packages = ["src/paper2layout"]
[tool.hatch.build.targets.wheel.force-include]
"src/paper2layout" = "paper2layout"
[tool.hatch.build]
exclude = ["scripts"]