forked from mind-inria/mri-nufft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (61 loc) · 1.98 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
[project]
name = "mri-nufft"
description = "MRI Non-Cartesian Fourier Operators with multiple computation backends."
authors = [{name="Pierre-antoine Comby", email="[email protected]"}]
readme = "README.md"
dependencies = ["numpy<2.0", "scipy", "matplotlib", "tqdm"]
requires-python = ">=3.8"
dynamic = ["version"]
[project.optional-dependencies]
gpunufft = ["gpuNUFFT>=0.9.0", "cupy-cuda12x"]
torchkbnufft = ["torchkbnufft", "cupy-cuda12x"]
cufinufft = ["cufinufft<2.3", "cupy-cuda12x"]
finufft = ["finufft"]
pynfft = ["pynfft2>=1.4.3", "numpy>=2.0.0"]
pynufft = ["pynufft"]
io = ["pymapvbvd"]
smaps = ["scikit-image"]
autodiff = ["torch"]
test = ["pytest<8.0.0", "pytest-cov", "pytest-xdist", "pytest-sugar", "pytest-cases"]
dev = ["black", "isort", "ruff"]
doc = ["sphinx-book-theme","sphinx-copybutton", "sphinx-gallery", "matplotlib", "pooch", "brainweb-dl"]
# pooch is for scipy.datasets
[build-system]
requires = ["setuptools", "setuptools-scm[toml]", "wheel"]
[tool.setuptools_scm]
write_to = "src/mrinufft/_version.py"
version_scheme = "python-simplified-semver"
local_scheme="no-local-version"
fallback_version="v99-dev"
[tool.coverage.run]
omit = ["*tests*", "*__init__*", "*setup.py*", "*_version.py*", "*example*"]
relative_files = true
source = ["src"]
[tool.coverage.report]
precision = 2
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
# Formatting using black.
[tool.black]
#linting using ruff
[tool.ruff]
extend-exclude = [ "example_*.py" , "*_version.py"]
[tool.ruff.lint]
select = ["E", "F", "B", "Q", "UP", "D"]
ignore = [
"B905", # zip() without an explicit strict= parameter
"B028", # No explicit stacklevel keyword argument found
"F401", # Using ``try: import ... except:`` is nice.
]
[tool.ruff.lint.pydocstyle]
convention="numpy"
[tool.isort]
profile="black"
[tool.pytest.ini_options]
minversion = "6.0"
norecursedirs = ["tests/helpers"]
testpaths=["tests"]
[tool.pylsp-mypy]
enabled = false
live_mode = false
[tool.mypy]
ignore_missing_imports = true