-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
157 lines (146 loc) · 2.76 KB
/
pyproject.toml
File metadata and controls
157 lines (146 loc) · 2.76 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
[project]
name = "ml-model-extraction"
version = "0.1.0"
description = "Research toolkit for inferring hidden structure from black-box ML models"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
keywords = [
"machine-learning",
"model-extraction",
"svd",
"neural-networks",
"security",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"dask>=2025.1.0",
"ipykernel>=6.29.5",
"matplotlib>=3.10.0",
"nltk>=3.9.1",
"numpy>=2.2.2",
"optuna>=4.4.0",
"pandas>=2.2.3",
"pydantic>=2.10.6",
"ruff>=0.9.3",
"scipy>=1.15.2",
"sentence-transformers>=4.1.0",
"stubs>=1.0.0",
"torch>=2.6.0",
"transformers>=4.48.3",
"ty>=0.0.4",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=6.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
addopts = "-v"
[tool.coverage.run]
source = ["src"]
omit = ["src/research/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.ruff]
target-version = "py312"
line-length = 88
indent-width = 4
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
extend-select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"YTT",
"ANN",
"ASYNC",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"EM",
"FA",
"ISC",
"ICN",
"LOG",
"G",
"INP",
"PIE",
"T20",
"PYI",
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"TCH",
"INT",
"ARG",
"PTH",
"FIX",
"ERA",
"PD",
"PGH",
"PL",
"TRY",
"FLY",
"NPY",
"PERF",
"RUF",
"D",
]
ignore = [
"ISC001", # Conflicts with formatter
"UP007", # Conflicts with pydantic
"E501", # Line length
"COM812", # Conflicts with formatter
"ANN401", # **kwargs and *args must be arbitrary type
"D100", # required docs
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D205", # 1 blank line required between summary line and description
"S101", # Use of assert
"N803", # Uppercase variables
"ERA001", # Commented-out code
"T201", # print
"N806", # Upercase variables
"S311", # Standard pseudo-random generators,
"E741",
"N802",
"INP001", # Implicit namespace package (tests don't need __init__.py)
"PLR2004", # Magic value comparisons (acceptable in tests)
]
[tool.ty]