Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
264 lines (240 loc) · 6.59 KB
/
Copy pathpyproject.toml
File metadata and controls
264 lines (240 loc) · 6.59 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
[build-system]
requires = ["setuptools>=80", "setuptools-scm>=10"]
build-backend = "setuptools.build_meta"
[project]
name = "structured-data-models"
dynamic = ["version"]
description = "Foundation Models for Structured Data"
readme = "README.md"
requires-python = ">=3.11"
license = "Apache-2.0"
license-files = [
"LICENSE",
"THIRD_PARTY_LICENSES.md",
"sdm/models/tabiclv2/LICENSE",
"sdm/models/tabfm/LICENSE",
"sdm/models/timesfm3/LICENSE",
"sdm/models/kumo/relational/NOTICE",
"third_party/contributor-covenant/LICENSE",
"third_party/pytorch/LICENSE",
"third_party/tabpfn-extensions/LICENSE",
]
authors = [
{ name = "NVIDIA" },
]
maintainers = [
{ name = "NVIDIA" },
]
keywords = [
"artificial intelligence",
"foundation models",
"machine learning",
"nvidia",
"schema",
"structured data",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"torch>=2.7",
"numpy",
"pyarrow",
"huggingface_hub",
"safetensors",
"typing_extensions",
]
[project.urls]
Download = "https://github.com/NVIDIA/structured-data-models/releases"
Homepage = "https://github.com/NVIDIA/structured-data-models"
Repository = "https://github.com/NVIDIA/structured-data-models"
Issues = "https://github.com/NVIDIA/structured-data-models/issues"
[dependency-groups]
test = [
"pytest",
"pytest-cov",
"pandas",
"cudf-cu13>=26.8; sys_platform == 'linux'",
"pyg-lib; sys_platform == 'linux'",
"pylibcugraph-cu13>=26.8; sys_platform == 'linux'",
"sentence-transformers>=5.4",
]
doc = [
"myst-parser",
"pandas",
"shibuya",
"sphinx",
"sphinx-copybutton",
]
dev = [
{ include-group = "test" },
{ include-group = "doc" },
]
[tool.setuptools.packages.find]
where = ["."]
include = ["sdm*"]
[tool.setuptools_scm]
fallback_version = "0.1.0.dev0"
[tool.uv]
managed = true
package = true
find-links = ["https://data.pyg.org/whl/torch-2.14.0+cpu.html"]
exclude-newer = "7 days"
[tool.uv.exclude-newer-package]
cudf-cu13 = false
libcudf-cu13 = false
libcugraph-cu13 = false
libcuvs-cu13 = false
libkvikio-cu13 = false
libraft-cu13 = false
librmm-cu13 = false
pylibcudf-cu13 = false
pylibcugraph-cu13 = false
pylibraft-cu13 = false
rmm-cu13 = false
relbench = false
torch = false
triton = false
[tool.pytest.ini_options]
addopts = [
"--capture=no",
"--color=yes",
"-vv",
"--import-mode=importlib",
"--strict-markers",
]
markers = [
"cuda: tests that require a NVIDIA GPU",
]
testpaths = ["test"]
xfail_strict = true
[tool.coverage.run]
branch = false
relative_files = true
[tool.coverage.report]
exclude_also = [
"pragma: no cover",
"raise NotImplementedError",
"except ImportError",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]
[tool.coverage.html]
title = "Structured Data Models Coverage Report"
skip_covered = true
skip_empty = true
[tool.ty.src]
include = ["sdm", "test", "examples", "benchmark"]
[[tool.ty.overrides]]
include = ["examples/**", "benchmark/**"]
[tool.ty.overrides.rules]
unresolved-import = "ignore"
unresolved-attribute = "ignore"
[[tool.ty.overrides]]
include = ["sdm/_kernels/triton/**"]
[tool.ty.overrides.rules]
unresolved-import = "ignore"
unused-ignore-comment = "ignore"
[tool.ruff] # https://docs.astral.sh/ruff/rules
src = ["pyproject.toml", "sdm", "test", "examples", "benchmark"]
line-length = 79
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
select = [
"A", # flake8-builtins
"B", # bugbear
"BLE", # blind-except
"C4", # comprehensions
"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"G", # flake8-logging-format
"I", # import sorting
"LOG", # flake8-logging
"NPY", # numpy-specific rules
"PIE", # flake8-pie
"PLC0415", # pylint: imports should be at module scope
"PLE", # pylint errors
"PT", # pytest style
"RET", # return statement style
"RUF", # ruff-specific rules
"SIM", # simplification
"T10", # flake8-debugger
"T20", # flake8-print
"TID252", # flake8-tidy-imports: require absolute imports
"TID253", # flake8-tidy-imports: keep optional imports lazy
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
ignore = [
"B905", # Ignore "zip() without explicit `strict`"
"D100", # Ignore "Missing docstring in public module"
"D105", # Ignore "missing docstring in magic method"
"D107", # Ignore "missing docstring in __init__"
"D413", # Ignore "Missing blank line after last section ("{name}")"
"RUF022", # Ignore sorting __all__; order controls public docs.
]
[tool.ruff.lint.isort]
known-first-party = ["benchmark", "sdm"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-builtins]
ignorelist = ["id"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
banned-module-level-imports = [
"cudf",
"cupy",
"graphviz",
"pandas",
"pyg_lib",
"pylibcudf",
"pytest",
"sentence_transformers",
"transformers",
"tokenizers",
]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = ["I"]
"benchmark/**/__init__.py" = ["D104"]
"sdm/_kernels/**/*.py" = ["D"]
"examples/**/*.py" = [
"D101", # Ignore "Missing docstring in public class"
"D102", # Ignore "Missing docstring in public method"
"D103", # Ignore "Missing docstring in public function"
"T201", # Allow print.
"TID253", # Example dependencies should be imported at module scope.
]
"benchmark/**/*.py" = [
"D101", # Ignore "Missing docstring in public class"
"D102", # Ignore "Missing docstring in public method"
"D103", # Ignore "Missing docstring in public function"
"T201", # Allow print.
"TID253", # Benchmark dependencies should be imported at module scope.
]
"test/**/*.py" = [
"D101", # Ignore "Missing docstring in public class"
"D102", # Ignore "Missing docstring in public method"
"D103", # Ignore "Missing docstring in public function"
"D104", # Ignore "Missing docstring in public package"
"D106", # Ignore "Missing docstring in public nested class"
"TID253", # Test dependencies should be imported at module scope.
]
[tool.ty.analysis]
allowed-unresolved-imports = [
"cudf.**",
"cupy.**",
"pyg_lib.**",
"pylibcudf.**",
"graphviz.**",
"pylibcugraph.**",
"sentence_transformers.**",
]