-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (161 loc) · 3.92 KB
/
pyproject.toml
File metadata and controls
168 lines (161 loc) · 3.92 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
163
164
165
166
167
168
[build-system]
requires = [
"setuptools",
"setuptools-scm",
"scikit-build-core>=0.4.3",
"nanobind>=1.3.2",
"jax >= 0.5.0",
]
build-backend = "scikit_build_core.build"
[project]
authors = [
{name = "Matthew A. Price"},
{name = "Jason D. McEwen"},
{name= "Contributors"}
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
]
description = "Differentiable and accelerated spherical transforms with JAX"
dependencies = [
"numpy>=1.20",
"jax>=0.5.0",
]
dynamic = [
"version",
]
keywords = [
]
name = "s2fft"
readme = "README.md"
requires-python = ">=3.11"
license.file = "LICENCE.txt"
urls.homepage = "https://github.com/astro-informatics/s2fft"
[project.optional-dependencies]
docs = [
"docutils<0.22", # Required due to https://github.com/vidartf/nbsphinx-link/issues/25
"sphinx>=5.0.0",
"nbsphinx-link>=1.3.0",
"pydata-sphinx-theme>=0.12.0",
"sphinx_toolbox>=2.15.0",
"sphinx-tabs>=3.2.0",
"sphinxcontrib-bibtex>=2.4.1",
"sphinx-git>=11.0.0",
"sphinxcontrib-texfigure>=0.1.3",
"sphinx-copybutton",
"sphinxemoji",
"sphinx_rtd_theme",
"sphinx_mdinclude",
"ipython>=7.16.1",
"jupyter>=1.0.0",
]
plotting = [
"pyvista",
"trame",
"ipykernel",
"ipywidgets",
]
tests = [
"pytest",
"pytest-cov",
"torch",
"ducc0",
"healpy",
"numpy<2", # Required currently due to lack of Numpy v2 compatible pyssht release
"pyssht",
"so3",
]
tests-cached = [
"pytest",
"pytest-cov",
"torch",
]
torch = [
"torch",
]
[tool.scikit-build]
# Protect the configuration against future changes in scikit-build-core
minimum-version = "0.8"
# Setuptools-style build caching in a local directory
build-dir = "build/{wheel_tag}"
# Build stable ABI wheels for CPython 3.12+
wheel.py-api = "cp312"
cmake.build-type = "Release"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["s2fft/_version.py"]
[tool.pytest.ini_options]
addopts = "--color=yes -v"
testpaths = [
"tests",
]
filterwarnings = [
"error",
"ignore::UserWarning",
"ignore::DeprecationWarning",
"ignore:FutureWarning",
]
markers = [
"slow: mark test as slow",
"pyssht: test requiring pyssht",
"healpy: test requiring healpy",
]
[tool.ruff]
fix = true
force-exclude = true
format.exclude = ["*.ipynb"]
lint.exclude = ["*.ipynb"]
lint.ignore = [
"B023", # function-uses-loop-variable
"COM812", # trailing commas (ruff-format recommended)
"D100", # undocumented-public-module
"D104", # undocumented-public-package
"D203", # no-blank-line-before-class
"D205", # blank line between summary and description in docstrings
"D212", # multi-line-summary-first-line
"D401", # non-imperative-mood
"D407", # removed dashes lines under sections
"D417", # argument description in docstring (unreliable)
"ISC001", # simplify implicit str concatenation (ruff-format recommended)
"S101", # assert
]
lint.per-file-ignores = {"benchmarks*" = [
"D", # No docstring checks in benchmarks
], "tests*" = [
"D", # No docstring checks in tests
"INP001", # File is part of an implicit namespace package.
"S101", # Use of `assert` detected
], "__init__.py" = [
"F401" # unused-import
]}
lint.select = [
"B",
"C90",
"D",
"E1",
"E4",
"E7",
"E9",
"F",
"I",
"S",
"UP",
]
lint.isort.known-first-party = [
"s2fft"
]
lint.mccabe.max-complexity = 18
lint.pep8-naming.classmethod-decorators = [
"classmethod",
]
[tool.setuptools]
packages = ["s2fft"]
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "s2fft/_version.py"