-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
151 lines (132 loc) · 3.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
[tool.poetry]
name = "aiida-mlip"
version = "0.2.1"
description = "machine learning interatomic potentials aiida plugin"
authors = [
"Federica Zanca <federica.zanca@stfc.ac.uk>",
"Elliott Kasoar",
"Jacob Wilkins",
"Alin M. Elena"
]
readme = "README.md"
packages = [{include = "aiida_mlip"}]
classifiers = [
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Development Status :: 5 - Production/Stable",
"Framework :: AiiDA"
]
keywords = ["aiida", "plugin"]
repository = "https://github.com/stfc/aiida-mlip/"
documentation = "https://stfc.github.io/aiida-mlip/"
[tool.poetry.urls]
"Source" = "https://github.com/aiidateam/aiida-mlip"
[tool.poetry.dependencies]
python = "^3.9"
aiida-core = "^2.6"
ase = "^3.23.0"
voluptuous = "^0.14"
janus-core = "^0.6.6"
aiida-workgraph = {extras = ["widget"], version = "^0.4.5"}
[tool.poetry.group.dev.dependencies]
coverage = {extras = ["toml"], version = "^7.4.1"}
pgtest = "^1.3.2"
pytest = "^8.0"
pytest-cov = "^4.1.0"
tox = "^4.12.1"
wheel = "^0.42"
[tool.poetry.group.pre-commit]
optional = true
[tool.poetry.group.pre-commit.dependencies]
pre-commit = "^3.6.0"
ruff = "^0.5.7"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
furo = "^2024.1.29"
markupsafe = "<2.1"
numpydoc = "^1.6.0"
sphinx = "^7.2.6"
sphinxcontrib-contentui = "^0.2.5"
sphinxcontrib-details-directive = "^0.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.plugins] # Optional super table
[tool.poetry.plugins."aiida.data"]
"mlip.modeldata" = "aiida_mlip.data.model:ModelData"
"mlip.config" = "aiida_mlip.data.config:JanusConfigfile"
[tool.poetry.plugins."aiida.calculations"]
"mlip.sp" = "aiida_mlip.calculations.singlepoint:Singlepoint"
"mlip.opt" = "aiida_mlip.calculations.geomopt:GeomOpt"
"mlip.md" = "aiida_mlip.calculations.md:MD"
"mlip.train" = "aiida_mlip.calculations.train:Train"
"mlip.descriptors" = "aiida_mlip.calculations.descriptors:Descriptors"
[tool.poetry.plugins."aiida.parsers"]
"mlip.sp_parser" = "aiida_mlip.parsers.sp_parser:SPParser"
"mlip.opt_parser" = "aiida_mlip.parsers.opt_parser:GeomOptParser"
"mlip.md_parser" = "aiida_mlip.parsers.md_parser:MDParser"
"mlip.train_parser" = "aiida_mlip.parsers.train_parser:TrainParser"
"mlip.descriptors_parser" = "aiida_mlip.parsers.descriptors_parser:DescriptorsParser"
[tool.pytest.ini_options]
# Configuration for [pytest](https://docs.pytest.org)
python_files = "test_*.py example_*.py"
addopts = '--cov-report xml'
filterwarnings = [
"ignore::DeprecationWarning:aiida:",
"ignore:Creating AiiDA configuration folder:",
"ignore::DeprecationWarning:plumpy:",
"ignore::DeprecationWarning:yaml:",
]
pythonpath = ["."]
[tool.coverage.run]
# Configuration of [coverage.py](https://coverage.readthedocs.io)
# reporting which lines of your plugin are covered by tests
source=["aiida_mlip"]
[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.ruff]
extend-exclude = ["conf.py", "*.ipynb"]
target-version = "py39"
[tool.ruff.lint]
# Ignore complexity, non-lowercase
ignore = ["C901", "N806"]
select = [
# flake8-bugbear
"B",
# pylint
"C", "R",
# pydocstyle
"D",
# pycodestyle
"E", "W",
# Pyflakes
"F",
# pyupgrade
"I",
# pep8-naming
"N",
# isort
"UP",
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = false