forked from materialsproject/atomate2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
237 lines (222 loc) · 6.69 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
237
[build-system]
requires = ["setuptools >= 42", "versioningit >= 1,< 4", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "atomate2"
description = "atomate2 is a library of materials science workflows"
readme = "README.md"
keywords = ["automated", "dft", "high-throughput", "vasp", "workflow"]
license = { text = "modified BSD" }
authors = [{ name = "Alex Ganose", email = "[email protected]" }]
dynamic = ["version"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Other/Nonlisted Topic",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.10"
dependencies = [
"PyYAML",
"click",
"custodian>=2024.4.18",
"emmet-core>=0.84.3rc3",
"jobflow>=0.1.11",
"monty>=2024.7.30",
"numpy",
"pydantic-settings>=2.0.3",
"pydantic>=2.0.1",
"pymatgen>=2024.11.13",
]
[project.optional-dependencies]
abinit = ["abipy>=0.9.3"]
amset = ["amset>=0.4.15", "pydash"]
cclib = ["cclib"]
mp = ["mp-api>=0.37.5"]
phonons = ["phonopy>=1.10.8", "seekpath>=2.0.0"]
lobster = ["ijson>=3.2.2", "lobsterpy>=0.4.0"]
defects = [
"dscribe>=1.2.0",
"pymatgen-analysis-defects>=2024.5.11",
"python-ulid>=2.7",
]
forcefields = [
"ase>=3.23.0",
"calorine<=2.2.1",
"chgnet>=0.2.2",
"mace-torch>=0.3.3",
"matgl>=1.1.3",
"torchdata<=0.7.1",
# quippy-ase support for py3.12 tracked in https://github.com/libAtoms/QUIP/issues/645
"quippy-ase>=0.9.14; python_version < '3.12'",
"sevenn>=0.9.3",
"torchdata<=0.7.1", # TODO: remove when issue fixed
]
ase = ["ase>=3.23.0"]
# tblite py3.12 support tracked in https://github.com/tblite/tblite/issues/198
ase-ext = ["tblite>=0.3.0; python_version < '3.12'"]
openmm = [
"mdanalysis>=2.7.0",
"openmm-mdanalysis-reporter>=0.1.0",
"openmm>=8.1.0",
]
fireworks = ["FireWorks==2.0.3"]
docs = [
"FireWorks==2.0.3",
"autodoc_pydantic==2.2.0",
"furo==2024.8.6",
"ipython==8.29.0",
"jsonschema[format]",
"myst_parser==4.0.0",
"numpydoc==1.8.0",
"sphinx-copybutton==0.5.2",
"sphinx==8.1.3",
"sphinx_design==0.6.1",
]
dev = ["pre-commit>=2.12.1"]
tests = [
"FireWorks==2.0.3",
"nbmake==1.5.4",
"pytest-cov==6.0.0",
"pytest-mock==3.14.0",
"pytest-split==0.10.0",
"pytest==8.3.3",
]
strict = [
"PyYAML==6.0.2",
"ase==3.23.0",
"cclib==1.8.1",
"click==8.1.7",
"custodian==2024.10.16",
"dscribe==2.1.1",
"emmet-core==0.84.3rc4",
"ijson==3.3.0",
"jobflow==0.1.19",
"lobsterpy==0.4.9",
"mdanalysis==2.7.0",
"monty==2024.10.21",
"mp-api==0.42.2",
"numpy",
"openmm-mdanalysis-reporter==0.1.0",
"openmm==8.1.1",
"phonopy==2.27.0",
"pydantic-settings==2.6.1",
"pydantic==2.9.2",
"pymatgen-analysis-defects==2024.10.22",
"pymatgen==2024.11.13",
"python-ulid==3.0.0",
"seekpath==2.1.0",
"tblite==0.3.0; python_version < '3.12'",
"typing-extensions==4.12.2",
]
strict-forcefields = [
"calorine==3.0",
"chgnet==0.4.0",
"mace-torch>=0.3.6",
"matgl==1.1.3",
"quippy-ase==0.9.14; python_version < '3.12'",
"sevenn==0.10.1",
"torch==2.5.1",
"torchdata==0.7.1", # TODO: remove when issue fixed
]
[project.scripts]
atm = "atomate2.cli:cli"
[project.urls]
homepage = "https://materialsproject.github.io/atomate2/"
repository = "https://github.com/materialsproject/atomate2"
documentation = "https://materialsproject.github.io/atomate2/"
changelog = "https://github.com/materialsproject/atomate2/blob/main/CHANGELOG.md"
[tool.setuptools.package-data]
atomate2 = ["py.typed"]
"atomate2.vasp.sets" = ["*.yaml"]
"atomate2.cp2k.sets" = ["*.yaml"]
"atomate2.cp2k.schemas.calc_types" = ["*.yaml"]
[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.1"
[tool.mypy]
ignore_missing_imports = true
no_strict_optional = true
[tool.pytest.ini_options]
addopts = "-p no:warnings --import-mode=importlib --cov-config=pyproject.toml"
filterwarnings = [
"ignore:.*POTCAR.*:UserWarning",
"ignore:.*input structure.*:UserWarning",
"ignore:.*is not gzipped.*:UserWarning",
"ignore:.*magmom.*:UserWarning",
"ignore::DeprecationWarning",
]
[tool.coverage.run]
include = ["src/*"]
parallel = true
branch = true
[tool.coverage.paths]
source = ["src/"]
[tool.coverage.report]
skip_covered = true
show_missing = true
exclude_lines = [
'^\s*@overload( |$)',
'^\s*assert False(,|$)',
'if typing.TYPE_CHECKING:',
'if TYPE_CHECKING:',
]
[tool.ruff]
target-version = "py310"
output-format = "concise"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN002", # Missing type annotation for *arg
"ANN003", # Missing type annotation for **kwargs
"ANN401", # typing.Any disallowed
"ARG002", # unused method argument
"C408", # Unnecessary (dict/list/tuple) call - remove call
"C901", # function too complex
"COM812", # trailing comma missing
"EM", # exception message must not use f-string literal
"ERA001", # found commented out code
"FBT001",
"FBT002",
"FIX002",
"G004", # logging uses f-string
"ISC001",
"PD011", # pandas-use-of-dot-values
"PERF203", # try-except-in-loop
"PLR0911", # too many returns
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many local statements
"PLR2004",
"PT006", # pytest-parametrize-names-wrong-type
"PT013", # pytest-incorrect-pytest-import
"PTH", # prefer Pathlib to os.path
"RUF013", # implicit-optional
"S324", # use of insecure hash function
"S507", # paramiko auto trust
"S603", # use of insecure subprocess
"TD", # todos
"TRY003", # long message outside exception class
]
pydocstyle.convention = "numpy"
isort.known-first-party = ["atomate2"]
isort.split-on-trailing-comma = false
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"**/tests/*" = ["ANN", "ARG001", "D", "INP001", "PLR2004", "S101"]
# flake8-type-checking (TCH): things inside TYPE_CHECKING aren't available
# at runtime and so can't be used by pydantic models
# flake8-future-annotations (FA): pipe operator for type unions only work in pydantic models in python 3.10+
"**/schemas/*" = ["FA", "TCH", "UP007"]
"**/schemas.py" = ["FA", "TCH", "UP007"]
"**/settings.py" = ["FA", "TCH", "UP007"]
"docs/*" = ["INP001"]