-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathpyproject.toml
More file actions
211 lines (188 loc) · 4.11 KB
/
pyproject.toml
File metadata and controls
211 lines (188 loc) · 4.11 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
[project]
name = "ml-peg"
version = "0.3.1"
description = "ML Performance and Extrapolation Guide"
authors = [
{ name = "Elliott Kasoar" },
{ name = "Joseph Hart" },
{ name = "Ilyes Batatia" },
{ name = "Alin M. Elena" },
{ name = "Gábor Csányi" },
]
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Development Status :: 3 - Alpha",
]
readme = "README.md"
dependencies = [
"boto3<2,>=1.40.49",
"dash<5,>=4.0.0",
"janus-core<1.0.0,>=0.8.6",
"kaleido<2,>=1.0.0",
"matcalc<0.5,>=0.4.5",
"matminer<0.10,>=0.9.3",
"mdanalysis<3,>=2.9.0",
"mlipx<0.2,>=0.1.5",
"molify<0.3,>=0.2.2",
"openpyxl<4,>=3.1.5",
"scikit-learn<2,>=1.7.2",
"tqdm<5,>=4.67.3",
"typer<1.0.0,>=0.19.1",
]
[project.optional-dependencies]
chgnet = [
"chgnet == 0.4.0",
]
d3 = [
"torch-dftd==0.5.1",
]
dpa3 = [
"deepmd-kit == 3.1.0",
]
grace = [
"tensorpotential == 0.5.1; python_version < '3.13'",
]
mace = [
"mace-torch==0.3.15",
]
mattersim = [
"mattersim==1.2.0",
]
orb = [
"orb-models == 0.5.5; sys_platform != 'win32' and python_version < '3.13'",
]
pet-mad = [
"pet-mad == 1.4.4; sys_platform != 'win32'"
]
uma = [
"fairchem-core == 2.10.0",
]
[project.scripts]
ml_peg = "ml_peg.cli.cli:app"
[project.urls]
Repository = "https://github.com/ddmms/ml-peg/"
Documentation = "https://ddmms.github.io/ml-peg/"
[dependency-groups]
dev = [
"coverage[toml]<8.0.0,>=7.4.1",
"ipykernel>=6.29.5",
"pgtest<2.0.0,>=1.3.2",
"pytest<9.0,>=8.0",
"pytest-cov<5.0.0,>=4.1.0",
"tox-uv<2.0,>=1.16.1",
"wheel<1.0,>=0.42",
]
docs = [
"furo<2025.0.0,>=2024.1.29",
"jupyter>=1.1.1",
"markupsafe",
"numpydoc<2.0.0,>=1.6.0",
"sphinx<8.2.0,>=8.0.2",
"sphinxcontrib-contentui<1.0.0,>=0.2.5",
"sphinxcontrib-details-directive<1.0,>=0.1",
"sphinx-autodoc-typehints<3.0.0,>=2.5.0",
"sphinx-collapse>=0.1.3",
"sphinx-copybutton<1.0.0,>=0.5.2",
]
pre-commit = [
"pre-commit<4.0.0,>=3.6.0",
"ruff<1.0.0,>=0.9.3",
]
prod = [
"gunicorn>=23",
]
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[tool.pytest.ini_options]
# Configuration for [pytest](https://docs.pytest.org)
python_files = "test_*.py"
pythonpath = ["."]
[tool.coverage.run]
# Configuration of [coverage.py](https://coverage.readthedocs.io)
# reporting which lines of your plugin are covered by tests
source=["ml_peg"]
[tool.ruff]
exclude = ["conf.py", "*ipynb"]
target-version = "py310"
[tool.ruff.lint]
# Ignore complexity
ignore = ["C901"]
select = [
# flake8-bugbear
"B",
# pylint
"C", "R",
# pydocstyle
"D",
# pycodestyle
"E", "W",
# Pyflakes
"F", "FA",
# pyupgrade
"I",
# pep8-naming
"N",
# isort
"UP",
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = false
[tool.numpydoc_validation]
# report on all checks, except the below
checks = [
"all",
"EX01",
"SA01",
"ES01",
"PR04", # Ignore no type (types come from signature as via sphinx_autodoc_typehints)
]
# Don't report on objects that match any of these regex
exclude = [
".__weakref__$",
".__repr__$",
]
[tool.uv]
default-groups = [
"dev",
"docs",
"pre-commit",
]
conflicts = [
[
{ extra = "uma" },
{ extra = "mace" },
],
[
{ extra = "uma" },
{ extra = "grace" },
],
[
{ extra = "mattersim" },
{ extra = "mace" },
],
[
{ extra = "mattersim" },
{ extra = "grace" },
],
]
constraint-dependencies = [
"tensorflow>=2.16.1",
]
[tool.uv.build-backend]
module-root = ""