-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
151 lines (139 loc) · 3.28 KB
/
pyproject.toml
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "sieves"
readme = "README.md"
description = "Rapid prototyping and robust baselines for information extraction with zero- and few-shot models."
license = { text = "MIT" }
dynamic = ["version", "authors"]
requires-python = ">=3.10"
dependencies = [
"loguru>=0.7.3"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
[project.optional-dependencies]
all = [
"chonkie>=0.3",
"docling>=2",
"outlines>=0.0.34",
"dspy-ai>=2,<3",
"chonkie>=0.3",
"transformers>=4,<5",
"loguru>=0.7.3",
"sentencepiece<1",
"gliner<1",
"ollama<1",
"langchain>=0.3,<0.4",
"scikit-learn>=1,<2",
"unstructured[all-docs]>=0.16,<1",
"unstructured-inference>=0.8,<1",
]
utils = [
"chonkie>=0.3",
"docling>=2",
"unstructured[all-docs]>=0.16,<1",
"unstructured-inference>=0.8,<1",
"tesseract>=0.1,<1"
]
engines = [
"outlines>=0.0.34",
"dspy-ai>=2,<3",
"transformers>=4,<5",
"sentencepiece<1",
"gliner<1",
"ollama<1",
"langchain>=0.3,<0.4",
"scikit-learn>=1,<2"
]
test = [
"pytest>=7.4.3",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.21.1",
"mypy>=1",
"mypy-extensions>=1",
"pytest-cov>=6",
"langchain-anthropic>0.3,<0.4",
"tesseract>=0.1,<1",
# For generating documentation.
"mkdocstrings[python]>=0.27,<1",
"mkdocs-material>=9.6,<10"
]
[tool.black]
line-length = 120
target-version = ['py310']
include = '\.pyi?$'
[tool.ruff]
line-length = 120
target-version = "py310"
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`)
select = ["E", "F", "I", "UP"]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = ["F401"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
".venv"
]
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
known-first-party = ["sieves"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
allow_untyped_globals = false
allow_redefinition = false
implicit_reexport = false
strict_equality = true
ignore_missing_imports = true
# Per-module ignores for third-party libraries
[[tool.mypy.overrides]]
module = ["outlines.*", "docling.*", "chonkie.*", "tqdm.*", "dspy.*"]
ignore_missing_imports = true
follow_imports = "skip"
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m not slow')"
]