-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
200 lines (166 loc) · 5.23 KB
/
pyproject.toml
File metadata and controls
200 lines (166 loc) · 5.23 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[dependency-groups]
analysis = [
"ipython",
"marimo",
"matplotlib",
"mdtraj",
"pandas",
"peppr",
"polars",
"pyzmq",
"scikit-learn",
"seaborn"
]
boltz = ["boltz", "cuequivariance-torch", "cuequivariance-ops-torch-cu12", "rdkit>=2025.3.6"]
dev = ["pytest", "pytest-cov", "mypy", "prek", "ty", "ruff", "pytest-loguru", "python-semantic-release"]
protenix = ["protenix>=0.6.3", "einx", "triton"]
[project]
authors = [{email = "[email protected]", name = "Karson Chrispens"}]
dependencies = [
"atomworks[ml]==2.1.1",
"python-dotenv",
"jaxtyping",
"jax",
"einx<0.4",
"hydra-core",
"loguru",
"omegaconf"
]
name = "sampleworks"
requires-python = ">= 3.11, <3.14"
version = "0.6.2"
[project.scripts]
sampleworks-guidance = "sampleworks.cli.guidance:main"
[tool.hatch.metadata]
allow-direct-references = true
[tool.mypy]
disallow_untyped_defs = false
ignore_missing_imports = true
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
[tool.pixi.activation.env]
CUDA_HOME = "$CONDA_PREFIX"
PYTHONNOUSERSITE = "1"
[tool.pixi.dependencies]
cuda-toolkit = ">=12,<13"
gcc_linux-64 = ">=9,<13"
gxx_linux-64 = ">=9,<13"
ninja = "*"
numpy = "<2.0"
pyarrow = "==17.0.0"
[tool.pixi.environments]
analysis = {features = ["analysis"]}
analysis-dev = {features = ["analysis", "dev"]}
boltz = {features = ["boltz"]}
boltz-analysis = {features = ["boltz", "analysis"]}
boltz-dev = {features = ["boltz", "dev"]}
protenix = {features = ["protenix"]}
protenix-dev = {features = ["protenix", "dev"]}
rf3 = {features = ["rf3"]}
rf3-dev = {features = ["rf3", "dev"]}
[tool.pixi.feature.protenix.pypi-options.dependency-overrides]
rdkit = ">=2024.3.5,<2025.9"
[tool.pixi.feature.rf3.pypi-dependencies]
rc-foundry = {editable = true, extras = ["rf3"], git = "https://github.com/k-chrispens/foundry.git"}
[tool.pixi.pypi-dependencies]
sampleworks = {editable = true, path = "."}
[tool.pixi.system-requirements]
cuda = "12"
# Includes slow tests that require GPU or model weights
[tool.pixi.tasks.all-tests]
args = [{arg = "flags", default = ""}]
cmd = "pytest {{ flags }}"
[tool.pixi.tasks.cpu-tests]
cmd = "pytest -m 'not gpu'"
[tool.pixi.tasks.gpu-tests]
cmd = "pytest -m gpu"
# Cross-env tasks use bash to orchestrate across environments because pixi's
# depends-on/alias mechanism only works within a single environment.
# This continues past failures, exits 1 if any env failed.
[tool.pixi.tasks.test-all]
cmd = "f=0; pixi run -e boltz-dev all-tests || f=1; pixi run -e protenix-dev all-tests || f=1; pixi run -e rf3-dev all-tests || f=1; exit $f"
[tool.pixi.tasks.test-fast]
cmd = "f=0; pixi run -e boltz-dev tests || f=1; pixi run -e protenix-dev tests || f=1; pixi run -e rf3-dev tests || f=1; exit $f"
# NOTE: if new model environment is added, we need new entries here
# Per-env: pixi run -e rf3-dev tests "-k integration"
[tool.pixi.tasks.tests]
args = [{arg = "flags", default = ""}]
cmd = "pytest -m 'not slow' {{ flags }}"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pytest.ini_options]
addopts = "-v --strict-markers"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: marks tests that require a GPU runner"
]
python_classes = ["Test*"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
testpaths = ["tests"]
[tool.ruff]
extend-include = ["*.ipynb"]
line-length = 100
src = []
target-version = "py312"
[tool.ruff.lint]
fixable = ["I001", "F401", "UP"]
ignore = ["E402", "E721", "E731", "E741", "F722", "UP015"]
select = ["E", "F", "I001", "UP"]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"collections" = "co"
"functools" = "ft"
"itertools" = "it"
[tool.ruff.lint.isort]
combine-as-imports = true
extra-standard-library = ["typing_extensions"]
lines-after-imports = 2
order-by-type = false
[tool.ruff.lint.per-file-ignores]
"*.mo.py" = ["ALL"]
[tool.semantic_release]
allow_zero_version = true
assets = ["pixi.lock"]
build_command = "pixi lock"
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
commit_parser = "conventional"
major_on_zero = false
tag_format = "v{version}"
version_toml = ["pyproject.toml:project.version"]
[tool.semantic_release.changelog]
mode = "update"
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"
[tool.semantic_release.publish]
upload_to_vcs_release = true
[tool.semantic_release.remote]
type = "github"
[tool.ty.environment]
python-version = "3.11"
[[tool.ty.overrides]]
include = ["src/sampleworks/eval/bond_angle_and_length_outlier_eval_script.py"]
[tool.ty.overrides.rules]
possibly-missing-attribute = "ignore"
[tool.ty.rules]
# Pre-existing type issues across the codebase; warn instead of error
# so ty runs in CI without blocking PRs while the team fixes them.
unresolved-import = "ignore"
unknown-argument = "warn"
unresolved-attribute = "warn"
invalid-argument-type = "warn"
invalid-assignment = "warn"
invalid-method-override = "warn"
invalid-parameter-default = "warn"
no-matching-overload = "warn"
not-iterable = "warn"
not-subscriptable = "warn"
too-many-positional-arguments = "warn"
unsupported-operator = "warn"
unused-ignore-comment = "warn"
unused-type-ignore-comment = "warn"