-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
146 lines (128 loc) · 4.94 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
[build-system]
requires = ["setuptools", "setuptools_scm>=8", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "torch-pme"
description = "Particle-mesh based calculations of long-range interactions in PyTorch"
authors = [{name = "torch-pme developers"}]
readme = "README.rst"
requires-python = ">=3.9"
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords = [
"PyTorch",
"Auto-differentiation",
"Particle-Mesh Ewald",
"Electrostatics",
"Computational Materials Science",
"Machine Learning",
"Molecular Dynamics",
"GPU Acceleration",
"High-Performance Computing",
"Fourier Transform",
"TorchScript",
"Scientific Computing",
]
dependencies = ["torch >=2.3"]
dynamic = ["version"]
[project.optional-dependencies]
examples = [
"ase >= 3.22.1",
"chemiscope",
"matplotlib",
"metatensor-operations",
"scipy",
"vesin >= 0.3.0",
"vesin-torch >= 0.3.0",
]
metatensor = ["metatensor-torch <0.7,>=0.6"]
[project.urls]
homepage = "https://lab-cosmo.github.io/torch-pme"
documentation = "https://lab-cosmo.github.io/torch-pme"
repository = "https://github.com/lab-cosmo/torch-pme"
issues = "https://github.com/lab-cosmo/torch-pme/issues"
changelog = "https://lab-cosmo.github.io/torch-pme/latest/references/changelog.html"
[tool.check-manifest]
ignore = ["src/torchpme/_version.py"]
[tool.coverage.report]
show_missing = true
include = ["src/torchpme/*"]
[tool.coverage.run]
branch = true
data_file = 'tests/.coverage'
[tool.coverage.xml]
output = 'tests/coverage.xml'
[tool.ruff]
exclude = ["docs/src/examples/**", "src/torchpme/_version.py"]
line-length = 88
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules for additional details
extend-select = [
"B", # Pyflakes checks (e.g., unused imports, undefined variables)
"D", # PEP 257 docstring conventions (e.g., formatting, consistency)
"E", # Pycodestyle errors (e.g., indentation, whitespace, syntax)
"UP", # PyUpgrade rules (e.g., upgrading to modern Python syntax)
"I", # Import conventions (e.g., sorting imports, duplicate imports)
"SIM", # Simplification suggestions (e.g., refactoring redundant code)
"PT", # Pytest style rules (e.g., avoiding assert in tests)
"RET", # Return statements consistency (e.g., avoiding multiple return paths)
"W", # Warnings about style (e.g., trailing whitespace, blank lines)
"Q", # Quotes consistency (e.g., single vs. double quotes)
]
ignore = [
"D100", # Missing docstring in public module
"D102", # Missing docstring in public method
"D104", # Missing docstring in public package
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"D403", # First word of the first line should be capitalized
"D404", # First word of the docstring should not be This
"D412", # No blank lines allowed between a section header and its conten
"D415", # First line should end with a period, question mark, or exclamation point
"D416", # Section name should end with a colon
"E501", # Line too long
]
[tool.ruff.lint.per-file-ignores]
"**/{tests,docs,examples}/*" = ["D1"] # Don't require any docstrings in these directories
[tool.ruff.lint.isort]
known-first-party = ["torchpme"]
[tool.ruff.format]
docstring-code-format = true
[tool.setuptools_scm]
version_file = "src/torchpme/_version.py"
[tool.mypy]
exclude = ["docs/src/examples"]
follow_imports = 'skip'
ignore_missing_imports = true
[tool.pytest.ini_options]
python_files = ["*.py"]
testpaths = ["tests"]
filterwarnings = [
"error",
"ignore:ast.Str is deprecated and will be removed in Python 3.14:DeprecationWarning",
"ignore:Attribute s is deprecated and will be removed in Python 3.14:DeprecationWarning",
"ignore:ast.NameConstant is deprecated and will be removed in Python 3.14:DeprecationWarning",
"ignore:custom data 'charges' is experimental, please contact metatensor's developers to add this data as a member of the `System` class:UserWarning",
]
[tool.setuptools.packages.find]
where = ["src"]