-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
166 lines (148 loc) · 3.28 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
[project]
name = "janus-core"
version = "0.6.6"
description = "Tools for machine learnt interatomic potentials"
authors = [
{ name = "Elliott Kasoar" },
{ name = "Federica Zanca" },
{ name = "Harvey Devereux "},
{ name = "Patrick Austin" },
{ name = "David Mason" },
{ name = "Jacob Wilkins" },
{ name = "Alin M. Elena" },
]
requires-python = "<3.13,>=3.9"
classifiers = [
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Development Status :: 3 - Alpha",
]
readme = "README.md"
dependencies = [
"ase<4.0,>=3.23",
"codecarbon<3.0.0,>=2.5.0",
"mace-torch==0.3.8",
"numpy<2.0.0,>=1.26.4",
"phonopy<3.0.0,>=2.23.1",
"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",
"torch<=2.2,>=2.1",
"torch-dftd==0.4.0",
"typer<1.0.0,>=0.12.5",
"typer-config<2.0.0,>=1.4.0",
]
[project.optional-dependencies]
alignn = [
"alignn == 2024.5.27",
]
chgnet = [
"chgnet == 0.3.8",
]
m3gnet = [
"matgl == 1.1.3",
"dgl == 2.1.0",
]
sevennet = [
"sevenn == 0.10.0",
]
all = [
"janus-core[alignn]",
"janus-core[chgnet]",
"janus-core[m3gnet]",
"janus-core[sevennet]",
]
[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",
"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",
"markupsafe<2.1",
"numpydoc<2.0.0,>=1.6.0",
"sphinx<8.0.0,>=7.2.6",
"sphinxcontrib-contentui<1.0.0,>=0.2.5",
"sphinxcontrib-details-directive<1.0,>=0.1",
"sphinx-copybutton<1.0.0,>=0.5.2",
]
pre-commit = [
"pre-commit<4.0.0,>=3.6.0",
"ruff<1.0.0,>=0.7.4",
]
[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"]
target-version = "py39"
[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",
]
# Don't report on objects that match any of these regex
exclude = [
".__weakref__$",
".__repr__$",
]
[tool.uv]
default-groups = [
"dev",
"docs",
"pre-commit",
]