-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
86 lines (70 loc) · 2.17 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
[project]
name = "pysap-mri"
version = "0.5.0"
description = "Python Sparse data Analysis Package external MRI plugin."
readme = "README.rst"
authors = [
{name = "Chaithya G R",email="[email protected]"},
{name="Pierre-Antoine Comby", email="[email protected]"},
{name="Jean-Luc Starck", email="[email protected]"},
{name="Philippe Ciuciu", email="[email protected]"},
]
dependencies = [
"finufft>=2.2.0",
"joblib>=1.0.0",
"modopt>=1.7.1",
"numpy>=1.16.0",
"mri-nufft>=0.8.0",
"progressbar2>=3.34.3",
"scikit-image>=0.17.0",
"scikit-learn>=0.19.1",
"scipy>=1.3.0",
]
license = {text = "CeCILL-B"}
requires-python = ">=3.10"
[project.optional-dependencies]
test=['pytest>=5.0.1', 'pytest-cov>=2.7.1', 'pytest-pep8', 'pytest-runner', "pytest-xdist", "pytest-sugar"]
gpu=["cupy", "cufinufft", "gpunufft"]
scripts=["hydra-zen", "pymrt", "nibabel", "hydra-callbacks"]
[project.scripts]
recon = "mri.cli.reconstruct:run_recon"
dc_adjoint = "mri.cli.reconstruct:run_adjoint"
retro_recon = "mri.cli.retro_recon:run_retro_recon"
[project.urls]
Homepage = "https://github.com/CEA-COSMIC/pysap-mri"
[build-system]
requires = ["setuptools", "setuptools-scm[toml]", "wheel"]
[tool.setuptools_scm]
write_to = "src/mri/_version.py"
version_scheme = "python-simplified-semver"
local_scheme="no-local-version"
fallback_version="v99-dev"
[tool.pytest.ini_options]
minversion = "6.0"
testpaths=["tests"]
[tool.pylsp-mypy]
enabled = false
live_mode = false
[tool.mypy]
ignore_missing_imports = true
[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"