Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (145 loc) · 3.84 KB
/
Copy pathpyproject.toml
File metadata and controls
162 lines (145 loc) · 3.84 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
# MDMC install config
# For full functionality MDMC requires one or more molecular dynamics (MD)
# engines to be installed. See 'optional-dependencies' for the currently
# supported engines.
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "MDMC"
version = "0.2.0a1"
description = "A package for optimising classical molecular dynamics parameters by refining against experimental data."
authors = [{name = "MDMC developers", email = "support@mdmcproject.org"}]
requires-python = ">=3.10"
readme = "README.md"
dependencies = [
"netCDF4==1.7.3",
"numpy==2.2.6",
"ipython==8.38.0",
"pandas==2.3.3",
"scipy==1.15.3",
"ase==3.24.0",
"mpi4py==4.1.1",
"scikit-learn==1.7.2",
"scikit-optimize==0.10.2",
"verbosemanager==1.3.0",
"corner==2.2.3",
"periodictable==1.7.1",
"statsmodels==0.14.5",
"cma==4.4.4",
"h5py==3.16.0",
"packmol==21.2.3",
"openmm==8.4.0",
"networkx==3.4",
"mdanse==2.0.1",
"more_itertools==10.8.0",
]
keywords = ["neutron scattering", "molecular dynamics"]
classifiers = [
"Development Status :: 5 - Alpha",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"Typing :: Typed"
]
license = {file = "LICENSE"}
[project.urls]
Homepage = "https://mdmcproject.org/"
Repository = "https://github.com/ISISNeutronMuon/MDMC"
[project.optional-dependencies]
test = ["pytest==9.0.3",
"pytest-cov==6.2.1",
"pytest-cases==3.9.1",
"pytest-profiling==1.8.1"]
lint = ["ruff==0.15.5"]
typecheck = ["mypy==1.19.1"]
docs = ["sphinx==8.1.3",
"nbsphinx==0.9.7",
"sphinx-rtd-theme==3.0.2",
"docutils==0.21.2",
"ipykernel==6.30.1",
"jupyter==1.1.1",
"nbmake==1.5.5",
"nbconvert==7.17.1",
"lxml[html_clean]"]
all = ["MDMC[test,lint,typecheck,docs]"]
[project.scripts]
MDMC = "MDMC.utilities.cli:main"
[tool.setuptools.packages.find]
include = ["MDMC*"]
[tool.numpydoc_validation]
checks = [
"all", # report on all checks, except the below
"EX01",
"SA01",
"ES01",
]
# remember to use single quotes for regex in TOML
exclude = [ # don't report on objects that match any of these regex
'\.__[^.]*__$',
]
override_SS05 = [ # override SS05 to allow docstrings starting with these words
'^Process ',
'^Assess ',
'^Access ',
'^Class ',
]
[tool.ruff]
line-length = 100
indent-width = 4
target-version = "py310"
# Exclude a variety of commonly ignored directories.
extend-exclude = [
".#*",
"__pycache__",
"*.ipynb",
"tests/*",
"examples/*",
"doc/*",
".github/*",
]
[tool.ruff.lint]
# Allow unused variables when underscore-prefixed.
select = [
"PLE", # Pylint errors
"E", # Pycodestyle
"W", # Pycodestyle warnings
"F", # Pyflakes
"B", # Flake8 bugbear
"SIM", # Flake8 Simplify
"A", # Flake8 builtins
"COM", # Flake8 commas
"FA", # Flake8 future
"ISC", # Flake8 implicit string concat
"RSE", # Flake8 raise
"I", # Isort
# "RUF", # Ruff specific
# "FURB",# Refurb
# "PERF",# Perflint
# "PL", # Pylint
# "NPY", # Numpy specific warnings
# "PTH", # Flake8 use pathlib
# "D", # Pydocstyle
"UP", # Pyupgrade
# "FBT", # Flake8 boolean trap
# "C4", # Flake8 comprehensions
# "PT", # Flake8 pytest style
# "Q", # Flake8 Quotes
# "RET", # Flake8 return
# "ARG", # Flake8 unused args
]
ignore = [
"B028", # No stacklevel in Warning
"B905", # No strict in zip
"A003", # Shadowing by attribute
"UP015", # Don't use 'r' mode parameter
"COM812",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.isort]
profile = "black"
known-first-party = ["MDMC"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-copyright]
author = "MDMC Developers"