-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
259 lines (234 loc) · 7.46 KB
/
pyproject.toml
File metadata and controls
259 lines (234 loc) · 7.46 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
[build-system]
requires = ["setuptools>=69.1.1"]
build-backend = "setuptools.build_meta"
[project]
name = "instanovo"
authors = [
{name = "Kevin Michael Eloff", email = "k.eloff@instadeep.com"},
{name = "Jeroen Van Goey", email = "j.vangoey@instadeep.com"},
{name = "Amandla Mabona", email = "a.mabona@instadeep.com"},
{name = "Rachel Catzel", email = "r.catzel@instadeep.com"},
]
keywords = [
"mass spectrometry",
"bioinformatics",
"machine learning",
"deep learning",
"transformer",
"de novo peptide sequencing"
]
description = "InstaNovo enables diffusion-powered de novo peptide sequencing in large scale proteomics experiments"
requires-python = " >=3.10,<3.14"
license = "Apache-2.0"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dynamic = ["version", "readme"]
dependencies = [
"accelerate>=1.6.0",
"datasets>=3.5.0",
"gitpython>=3.1.44",
"hydra-core>=1.3.2",
"jaxtyping>=0.2.34",
"jiwer>=3.0.5",
"matchms>=0.28.1",
"neptune>=1.13.0",
"numpy>=2.0.2",
"omegaconf>=2.3.0",
"pandas>=2.2.3",
"polars>=1.12.0",
"pubchempy>=1.0.4",
"pyteomics>=4.7.5",
"python-dotenv>=1.0.1",
"pyyaml>=6.0.2",
"requests>=2.32.3",
"s3fs>=2024.12.0",
"scikit-learn>=1.5.2",
"signalrcore",
"spectrum-utils>=0.4.2",
"tensorboard>=2.18.0",
"tqdm>=4.67.0",
"transfusion-asr>=0.1.0",
"typer>=0.15.1",
]
[dependency-groups]
aichor = [
"aichor-cli>=2.8.2; python_version >= '3.11'",
]
dev = [
"allure-pytest>=2.13.5",
"coverage>=7.6.4",
"genbadge[coverage]>=1.1.1",
"gsutil>=5.31",
"ipykernel>=6.29.5",
"ipywidgets>=8.1.5",
"jupyter>=1.1.1",
"matplotlib-venn>=1.1.2",
"mkdocs-include-markdown-plugin>=7.2.0",
"nbmake>=1.5.5",
"pip>=25.0.1",
"pre-commit>=4.0.1",
"pyopenms-viz>=0.1.5",
"pytest>=8.2.0",
"pytest-cov>=5.0.0",
"pytest-html>=4.1.1",
"pytest-mock>=3.14.0",
"pytest-parallel>=0.1.1",
"pytest-random-order>=1.1.1",
"pytest-xdist>=3.6.1",
"rich-codex>=1.2.7",
"seaborn>=0.13.2",
"testfixtures>=8.3.0",
"tomli>=2.2.1",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-coverage>=2.0.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-git-revision-date-plugin>=0.3.2",
"mkdocs-include-markdown-plugin>=7.0.0",
"mkdocs-material>=9.5.42",
"mkdocs-pymdownx-material-extras>=2.6",
"mkdocstrings>=0.26.2",
"mkdocstrings-python>=1.12.2",
"pymdown-extensions>=10.11.2",
"mkdocs-jupyter>=0.24.6",
]
# See https://docs.astral.sh/uv/guides/integration/pytorch/
[project.optional-dependencies]
cpu = [
"torch>2.5,<2.8; sys_platform == 'darwin'",
"torch>2.5,<2.9; sys_platform == 'linux' or sys_platform == 'win32'",
]
cu124 = [
"torch>=2.4.1,<2.5",
]
cu126 = [
"torch>=2.5,<2.8; sys_platform == 'darwin'",
"torch>=2.5,<2.9; sys_platform == 'linux' or sys_platform == 'win32'",
]
[tool.uv]
required-version = ">=0.6.5"
conflicts = [
[
{ extra = "cpu" },
{ extra = "cu124" },
{ extra = "cu126" },
],
]
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu", extra = "cpu", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
{ index = "pytorch-cu124", extra = "cu124", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
{ index = "pytorch-cu126", extra = "cu126", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
aichor-cli = { index = "aichor" }
signalrcore = { git = "https://github.com/mandrewcito/signalrcore.git" }
[project.scripts]
instanovo = "instanovo.cli:instanovo_entrypoint"
[[tool.uv.index]]
name = "aichor"
url = "https://client-python-package.aichor.ai/"
explicit = true
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu126"
url = "https://download.pytorch.org/whl/cu126"
explicit = true
[tool.setuptools.dynamic]
readme = { file = ["README.md"], content-type = "text/markdown" }
version = { attr = "instanovo.__version__" }
[tool.setuptools.packages.find]
include = ["instanovo*"]
[tool.setuptools.package-data]
instanovo = ["py.typed", "models.json", "configs/*.yaml"]
[tool.coverage.run]
source = ["instanovo"]
omit = [
"*/__init__.py",
"*_test.py",
"instanovo/reasoning/**",
"instanovo/contrastive/**",
"instanovo/search/**",
"instanovo/insta_glyconovo/**",
]
[tool.coverage.report]
omit = [
"__init__.py",
"*_test.py",
"instanovo/reasoning/**",
"instanovo/contrastive/**",
"instanovo/search/**",
"instanovo/insta_glyconovo/**",
]
exclude_lines = [
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:"]
[tool.coverage.html]
directory = "docs/coverage"
[tool.codespell]
skip = "*.js,*.html,*.css, *.svg, *.csv"
ignore-words-list = ["abck", "fOf", "fals", "te", "woh", "ges", "fpt", "filll", "inro", "nd", "fo", "nd"]
[tool.mypy]
python_version = "3.10"
namespace_packages = true
incremental = false
cache_dir = ".mypy_cache"
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
allow_redefinition = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
strict_optional = true
strict_equality = true
explicit_package_bases = true
follow_imports = "skip"
[tool.ruff]
line-length = 150
[tool.ruff.lint]
extend-select = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "T", "W"]
ignore = ["B008", "C901", "D100", "D103", "D104", "D105", "D107", "D417", "F722", "G004", "N812"]
[tool.ruff.lint.pydocstyle]
convention = "google" # Accepts: "google", "numpy", or "pep257"
[tool.ruff.lint.per-file-ignores]
# Ignore `D104` (missing docstring) in all `__init__.py` files
"__init__.py" = ["D104"]
"*.ipynb" = ["T201"] # Ignore T201 (`print` found) in Jupyter Notebooks
[tool.pytest.ini_options]
filterwarnings = [
# Suppress fork() deprecation warning in Python 3.13+ when using multiprocessing in multi-threaded contexts
# This is safe to ignore as we're not experiencing deadlocks, and using 'spawn' would significantly slow down tests
"ignore::DeprecationWarning:multiprocessing.popen_fork",
"ignore:This process.*is multi-threaded.*use of fork.*may lead to deadlocks:DeprecationWarning",
# Suppress jsonschema.RefResolver deprecation warnings from third-party packages
"ignore:jsonschema.RefResolver is deprecated:DeprecationWarning",
# Suppress PyTorch nested tensors prototype API warning
"ignore:The PyTorch API of nested tensors is in prototype stage:UserWarning",
# Suppress asyncio.get_event_loop() deprecation warning
"ignore:There is no current event loop:DeprecationWarning",
# Suppress PyTorch weight_norm deprecation warning (from transfusion-asr dependency)
"ignore:`torch.nn.utils.weight_norm` is deprecated:FutureWarning",
# Suppress PyTorch mask type mismatch warning (from PyTorch's internal handling, also transfusion-asr)
"ignore:Support for mismatched key_padding_mask and attn_mask is deprecated:UserWarning",
]
[project.urls]
Homepage = "https://github.com/instadeepai/InstaNovo"
Issues = "https://github.com/instadeepai/InstaNovo/issues"
documentation = "https://instadeepai.github.io/InstaNovo/"