-
Notifications
You must be signed in to change notification settings - Fork 26
/
pyproject.toml
206 lines (184 loc) · 5.03 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
199
200
201
202
203
204
205
206
[build-system]
requires = ["hatchling", "hatch-vcs", "nipreps-versions"]
build-backend = "hatchling.build"
[project]
name = "xcp_d"
description = "XCP-D: A Robust Postprocessing Pipeline of fMRI data"
authors = [{name = "PennLINC and DCAN labs"}]
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"}
requires-python = ">=3.10"
dependencies = [
'importlib_resources; python_version < "3.11"',
"acres",
"beautifulsoup4", # to clean up HTML in DCAN executive summary outputs
"bids-validator <= 1.14.7.post0",
"h5py <= 3.12.1", # for DCAN motion file
"indexed_gzip ~= 1.9.1", # for loading imgs in nibabel
"jinja2 ~= 3.1.2", # for executive summary
"joblib <= 1.4.2",
"matplotlib ~= 3.10.0",
"networkx <= 3.4.2", # nipype needs networkx, but 3+ isn't compatible with nipype 1.8.5
"nibabel >= 3.2.1",
"nilearn == 0.11.1", # 0.10.2 raises error with compcor from fMRIPrep 23
"nipype ~= 1.9.1",
"nireports ~= 24.1.0",
"niworkflows == 1.12.1",
"nitime", # for DVARS calculation in Nipype
"num2words", # for boilerplates
"numpy ~= 2.0",
"packaging", # for version string parsing
"pandas",
"psutil >= 5.4", # for sentry
"pybids ~= 0.18.1",
"pyyaml",
"scikit-learn <= 1.6.0",
"scipy >= 1.14.0,<= 1.14.1", # nipype needs networkx, which needs scipy > 1.8.0
"seaborn", # for plots
"sentry-sdk ~= 2.19.0", # for usage reports
"templateflow ~= 24.2.0",
"toml",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/PennLINC/xcp_d"
Documentation = "https://www.xcp-d.readthedocs.io"
Paper = "https://doi.org/10.1038/s41592-022-01458-7"
"Docker Images" = "https://hub.docker.com/r/pennlinc/xcp_d/tags/"
NiPreps = "https://www.nipreps.org/"
[project.optional-dependencies]
doc = [
"doctest-ignore-unicode",
"pydot >=1.2.3",
"pydotplus",
"recommonmark",
"sphinx >= 4.2.0",
"sphinx-argparse != 0.5.0",
"sphinx-markdown-tables",
"sphinx_rtd_theme",
"sphinxcontrib-apidoc",
"sphinxcontrib-bibtex",
"svgutils",
]
dev = [
"ruff ~= 0.8.0",
"pre-commit",
]
tests = [
"coverage",
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-env",
]
maint = [
"fuzzywuzzy",
"python-Levenshtein",
]
# Aliases
all = ["xcp_d[dev,doc,maint,tests]"]
[project.scripts]
xcp_d = "xcp_d.cli.run:main"
xcp_d-combineqc = "xcp_d.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 = ["xcp_d"]
exclude = [
"xcp_d/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 = "xcp_d/_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 = [
"S101", # Ignore use of assert for now
"S105",
"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"]
"xcp_d/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 integration"'
markers = [
"integration: mark test as an integration test",
"ds001419_nifti: mark NIfTI integration test for fMRIPrep derivatives from ds001419",
"ds001419_cifti: mark CIFTI integration test for fMRIPrep derivatives from ds001419",
"ukbiobank: mark integration test for UK Biobank derivatives with NIfTI settings",
"pnc_cifti: mark integration test for fMRIPrep derivatives with CIFTI settings",
"pnc_cifti_t2wonly: mark integration test for fMRIPrep derivatives with CIFTI settings and a simulated T2w file",
"fmriprep_without_freesurfer: mark integration test for fMRIPrep derivatives without FreeSurfer",
"fmriprep_without_freesurfer_with_main: mark integration test for fMRIPrep derivatives without FreeSurfer using main function",
"nibabies: mark integration test for nibabies derivatives",
]
env = [
"RUNNING_PYTEST = 1",
]
[tool.coverage.run]
branch = true
omit = [
"*/tests/*",
"*/__init__.py",
"*/conftest.py",
"xcp_d/_version.py"
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
'raise NotImplementedError',
'warnings\.warn',
]