forked from ddmms/pack-mm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (126 loc) · 3.1 KB
/
pyproject.toml
File metadata and controls
144 lines (126 loc) · 3.1 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
[project]
name = "pack-mm"
version = "0.1.11"
description = "packing materials and molecules in boxes using for machine learnt interatomic potentials"
authors = [
{ 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 :: MIT License",
"Natural Language :: English",
"Development Status :: 4 - Beta",
]
readme = "README.md"
dependencies = [
"janus-core[mace]>=0.7.2",
"typer<1.0.0,>=0.12.5",
"typer-config<2.0.0,>=1.4.2",
]
[project.scripts]
packmm = "pack_mm.cli.packmm:app"
[project.urls]
Repository = "https://github.com/ddmms/pack-mm/"
Documentation = "https://ddmms.github.io/pack-mm/"
[dependency-groups]
dev = [
"coverage[toml]<8.0.0,>=7.4.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",
"sphinx-immaterial",
"nbsphinx>=0.9.6",
"numpydoc<2.0.0,>=1.6.0",
"sphinx<9.0.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",
"data-tutorials",
"weas-widget>=0.1.25",
]
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=["pack_mm"]
[tool.ruff]
exclude = ["conf.py", "*ipynb"]
target-version = "py312"
[tool.ruff.lint]
# Ignore complexity
ignore = ["C901","B008"]
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",
]
[tool.uv.sources]
sphinx-immaterial = { git = "https://github.com/jbms/sphinx-immaterial.git", rev = "main" }