-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
184 lines (166 loc) · 4.1 KB
/
pyproject.toml
File metadata and controls
184 lines (166 loc) · 4.1 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "sieves"
readme = "README.md"
description = "Plug-and-play, zero-shot document processing pipelines."
license = { text = "MIT" }
authors = [
{ name = "Matthew Upson", email = "[email protected]" },
{ name = "Nick Sorros", email = "[email protected]" },
{ name = "Raphael Mitsch", email = "[email protected]" },
{ name = "Matthew Maufe", email = "[email protected]" },
{ name = "Angelo Di Gianvito", email = "[email protected]" },
]
dynamic = ["version"]
requires-python = ">=3.12,<3.14"
dependencies = [
"chonkie>=1,<2",
"datasets>=3,<4",
"jinja2>=3,<4",
"loguru>=0.7,<1",
"pydantic>=2,<3",
"nest-asyncio>=1,<2",
# Model wrappers
"outlines>=1,<2",
"gliner2>=1.2,<2",
"transformers[torch]>=4,<5",
"dspy-ai>=3,<4",
"dspy>=3,<4",
"accelerate>1.2,<2",
"langchain-core>=1,<2",
"langchain>=1,<2",
"sentencepiece<1",
"json-repair>=0.48.0",
"openai>=2,<3",
"langchain-openai>=1.1.6,<2",
"pydantic-ai>=1,<2",
"scikit-learn>=1.6,<2",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
[project.urls]
Homepage = "https://github.com/MantisAI/sieves"
Repository = "https://github.com/MantisAI/sieves"
[project.optional-dependencies]
ingestion = [
"docling>=2,<3",
"nltk>=3.9.1",
]
distill = [
"setfit>=1.1,<2",
"model2vec[train]>0.4,<0.5",
]
test = [
"anthropic>=0.45,<1",
"langchain-community>=0.3.31,<0.4",
"langchain-openai>=1,<2",
"marimo>=0.18.4,<0.19",
# "tesseract>=0.1,<1",
# For generating documentation.
"mkdocstrings[python]>=0.27,<1",
"mkdocs-material>=9.6,<10",
# For tests.
"pytest>=7,<8",
"flaky>=3.8.1",
"pytest-cov>=6",
# For linting.
"pre-commit>=4,<5",
"mypy>=1",
"mypy-extensions>=1",
"pre-commit>=4,<5",
]
[tool.setuptools.packages.find]
include = ["sieves*"]
[tool.setuptools_scm]
[tool.ruff]
line-length = 120
target-version = "py312"
# 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",
"sieves/tests/**",
# Ignore demosd.
"demos/**"
]
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`)
select = ["E", "F", "I", "UP"]
extend-select = ["D"]
ignore = ["D203", "D212"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = ["F401"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["sieves"]
[tool.mypy]
python_version = "3.11"
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.mypy.overrides]]
module = "examples.*"
follow_imports = "skip"
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m not slow')"
]
[tool.coverage.run]
source = ["sieves/"]
omit = ["*__init__*"]
[tool.coverage.report]
show_missing = true
precision = 2
sort = "Miss"