-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
198 lines (176 loc) · 4.52 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
[build-system]
requires = ["hatchling", "hatch-vcs", "nipreps-versions"]
build-backend = "hatchling.build"
[project]
name = "aslprep"
description = "ASLPrep - A Robust Preprocessing Pipeline for ASL Data"
readme = "long_description.rst"
authors = [{name = "The ASLPrep Developers"}]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Image Recognition",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.10",
]
license = {file = "LICENSE.md"}
requires-python = ">=3.10"
dependencies = [
'importlib_resources; python_version < "3.11"',
"acres",
"fmriprep >= 24.1.0, <= 24.1.1",
"indexed_gzip <= 1.8.7",
"looseversion",
"networkx ~= 3.3", # nipype needs networkx, but 3+ isn"t compatible with nipype 1.8.5
"nibabel <= 5.3.2",
"nilearn ~= 0.10.3",
"nipype >= 1.8.5",
"nitransforms >= 21.0.0",
"niworkflows ~= 1.11.0",
"numpy >= 1.26",
"packaging",
"pandas",
"psutil <= 6.1.0",
"pybids <= 0.17.2",
"requests",
"sdcflows <= 2.10.0",
"sentry-sdk <= 2.18.0",
"smriprep <= 0.16.1",
"templateflow <= 24.2.2",
"toml",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/PennLINC/aslprep"
Documentation = "https://www.aslprep.readthedocs.io"
Paper = "https://doi.org/10.1038/s41592-022-01458-7"
"Docker Images" = "https://hub.docker.com/r/pennlinc/aslprep/tags/"
NiPreps = "https://www.nipreps.org/"
[project.optional-dependencies]
doc = [
"doctest-ignore-unicode",
"lxml_html_clean",
"myst_parser",
"nbsphinx",
"packaging",
"pydot >= 1.2.3",
"pydotplus",
"sphinx >= 6.2.1",
"sphinx-argparse",
"sphinx-markdown-tables",
"sphinx_rtd_theme >= 1.2.2",
"sphinxcontrib-apidoc",
"sphinxcontrib-bibtex",
]
dev = [
"ruff ~= 0.7.3",
"pre-commit",
]
test = [
"codecov",
"coverage",
"pytest",
"pytest-cov",
]
maint = [
"fuzzywuzzy",
"python-Levenshtein",
]
# Aliases
all = ["aslprep[dev,doc,maint,test]"]
[project.scripts]
aslprep = "aslprep.cli.run:main"
aslprep-combineqc = "aslprep.cli.aggregate_qc:main"
#
# Hatch configurations
#
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
exclude = [".git_archival.txt"] # No longer needed in sdist
[tool.hatch.build.targets.wheel]
packages = ["aslprep"]
exclude = [
"aslprep/tests/data", # Large test data directory
]
## The following two sections configure setuptools_scm in the hatch way
[tool.hatch.version]
source = "vcs"
# raw-options = { version_scheme = "nipreps-calver" }
[tool.hatch.build.hooks.vcs]
version-file = "aslprep/_version.py"
#
# Developer tool configurations
#
# Disable black
[tool.black]
exclude = ".*"
[tool.ruff]
line-length = 99
[tool.ruff.lint]
extend-select = [
"F",
"E",
"W",
"I",
"UP",
"YTT",
"S",
"BLE",
"B",
"A",
# "CPY",
"C4",
"DTZ",
"T10",
# "EM",
"EXE",
"FA",
"ISC",
"ICN",
"PT",
"Q",
]
ignore = [
"S311", # We are not using random for cryptographic purposes
"ISC001",
"S603",
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.extend-per-file-ignores]
"*/test_*.py" = ["S101"]
"aslprep/utils/debug.py" = ["A002", "T100"]
"docs/conf.py" = ["A001"]
"docs/sphinxext/github_link.py" = ["BLE001"]
[tool.ruff.format]
quote-style = "single"
[tool.pytest.ini_options]
addopts = '-m "not examples_pcasl_singlepld_philips and not examples_pcasl_singlepld_siemens and not examples_pcasl_singlepld_ge and not examples_pcasl_multipld and not examples_pasl_multipld and not qtab and not test_001 and not test_002 and not test_003_minimal and not test_003_resampling and not test_003_full"'
markers = [
"examples_pasl_multipld: mark integration test",
"examples_pcasl_multipld: mark integration test",
"examples_pcasl_singlepld_ge: mark integration test",
"examples_pcasl_singlepld_philips: mark integration test",
"examples_pcasl_singlepld_siemens: mark integration test",
"qtab: mark integration test",
"test_001: mark integration test",
"test_002: mark integration test",
"test_003_minimal: mark integration test",
"test_003_resampling: mark integration test",
"test_003_full: mark integration test",
]
[tool.coverage.run]
branch = false
omit = [
"*/tests/*",
"*/__init__.py",
"*/conftest.py",
"aslprep/_version.py"
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
'raise NotImplementedError',
'warnings\.warn',
]