-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
236 lines (214 loc) · 4.75 KB
/
pyproject.toml
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
[project]
name = "janus-core"
version = "0.7.4"
description = "Tools for machine learnt interatomic potentials"
authors = [
{ name = "Elliott Kasoar" },
{ name = "Patrick Austin" },
{ name = "Harvey Devereux" },
{ name = "Kieran Harris" },
{ name = "David Mason" },
{ name = "Jacob Wilkins" },
{ name = "Federica Zanca" },
{ name = "Alin M. Elena" },
]
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Development Status :: 3 - Alpha",
]
readme = "README.md"
dependencies = [
"ase<4.0,>=3.24",
"codecarbon<3.0.0,>=2.8.3",
"numpy<2.0.0,>=1.26.4",
"phonopy<3.0.0,>=2.23.1",
"pymatgen>=2025.1.24",
"pyyaml<7.0.0,>=6.0.1",
"rich<14.0.0,>=13.9.1",
"seekpath<2.0.0,>=1.9.7",
"spglib<3.0.0,>=2.3.0",
"typer<1.0.0,>=0.12.5",
"typer-config<2.0.0,>=1.4.2",
]
[project.optional-dependencies]
chgnet = [
"chgnet == 0.4.0",
]
dpa3 = [
"deepmd-kit",
]
mace = [
"mace-torch==0.3.10",
"torch-dftd==0.4.0",
]
nequip = [
"nequip == 0.6.1",
]
orb = [
"orb-models == 0.4.2",
"pynanoflann",
]
sevennet = [
"sevenn == 0.10.3",
]
all = [
"janus-core[chgnet]",
"janus-core[dpa3]",
"janus-core[mace]",
"janus-core[nequip]",
"janus-core[orb]",
"janus-core[sevennet]",
]
# MLIP with updated e3nn
mattersim = [
"mattersim == 1.1.1",
]
# MLIPs with dgl dependency
alignn = [
"alignn == 2024.5.27",
"torch == 2.2",
"torchdata == 0.7.1",
]
m3gnet = [
"matgl == 1.1.3",
"torch == 2.2",
"torchdata == 0.7.1",
]
[project.scripts]
janus = "janus_core.cli.janus:app"
[project.urls]
Repository = "https://github.com/stfc/janus-core/"
Documentation = "https://stfc.github.io/janus-core/"
[dependency-groups]
dev = [
"coverage[toml]<8.0.0,>=7.4.1",
"data-tutorials>=0.3.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<2.1",
"nbsphinx>=0.9.6",
"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",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pytest.ini_options]
# Configuration for [pytest](https://docs.pytest.org)
python_files = "test_*.py"
addopts = '--cov-report xml'
pythonpath = ["."]
[tool.coverage.run]
# Configuration of [coverage.py](https://coverage.readthedocs.io)
# reporting which lines of your plugin are covered by tests
source=["janus_core"]
[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",
]
constraint-dependencies = [
"dgl==2.1",
"torch<2.6",
]
conflicts = [
[
{ extra = "chgnet" },
{ extra = "alignn" },
],
[
{ extra = "chgnet" },
{ extra = "m3gnet" },
],
[
{ extra = "all" },
{ extra = "alignn" },
],
[
{ extra = "all" },
{ extra = "m3gnet" },
],
[
{ extra = "mattersim" },
{ extra = "mace" },
],
[
{ extra = "mattersim" },
{ extra = "all" },
],
]
[tool.uv.sources]
deepmd-kit = { git = "https://github.com/deepmodeling/deepmd-kit.git", rev = "dpa3-alpha" }
pynanoflann = { git = "https://github.com/dwastberg/pynanoflann", rev = "af434039ae14bedcbb838a7808924d6689274168" }