-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
158 lines (150 loc) · 3.68 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
152
153
154
155
156
157
158
[build-system]
requires = [
"setuptools",
"setuptools-scm",
"scikit-build-core >=0.4.3",
"nanobind >=1.3.2"
]
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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
]
description = "Differentiable and accelerated spherical transforms with JAX"
dependencies = [
"numpy>=1.20,<2",
"colorlog",
"pyyaml",
"jax>=0.3.13",
"jaxlib",
"torch",
"pyssht",
"healpy",
"ducc0",
]
dynamic = [
"version",
]
keywords = [
]
name = "s2fft"
readme = ".pip_readme.rst"
requires-python = ">=3.8"
license.file = "LICENCE.txt"
urls.homepage = "https://github.com/astro-informatics/s2fft"
[project.optional-dependencies]
docs = [
"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",
"ipython>=7.16.1",
"jupyter>=1.0.0",
]
plotting = [
"pyvista",
"trame",
"ipykernel",
"ipywidgets",
]
tests = [
"pytest",
"pytest-cov",
"so3",
]
[tool.scikit-build]
# Protect the configuration against future changes in scikit-build-core
minimum-version = "0.4"
# 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"
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",
]
[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.package-data]
s2fft = ["default-logging-config.yaml"]
[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "s2fft/_version.py"