-
Notifications
You must be signed in to change notification settings - Fork 27
/
pyproject.toml
208 lines (183 loc) · 4.3 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
207
208
[build-system]
requires = ["hatchling", "hatch-vcs", "nipreps-versions"]
build-backend = "hatchling.build"
[project]
name = "sdcflows"
description = "Susceptibility Distortion Correction (SDC) workflows for EPI MR schemes."
readme = "README.rst"
authors = [{name = "The NiPreps Developers", email = "[email protected]"}]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
license = "Apache-2.0"
requires-python = ">=3.9"
dependencies = [
"acres >= 0.2.0",
"attrs >= 20.1.0",
"nibabel >= 3.0",
"nipype >= 1.8.5",
"migas >= 0.4.0",
"nireports >= 24.1.0",
"niworkflows >= 1.7.0",
"nitransforms >= 24.1.0",
"numpy >= 1.22",
"pybids >= 0.16.4",
"scikit-image >= 0.18",
"scipy >= 1.8.1",
"templateflow >= 23.1",
"toml >= 0.10",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://www.nipreps.org/sdcflows"
Home = "https://github.com/nipreps/sdcflows"
NiPreps = "https://www.nipreps.org/"
[project.optional-dependencies]
doc = [
"attrs >= 20.1.0",
"furo",
"importlib_resources",
"ipykernel",
"ipython",
"nbsphinx",
"pandoc",
"pydot >= 1.2.3",
"pydotplus",
"sphinx >= 7.2.2",
"sphinx-argparse",
"sphinxcontrib-apidoc",
]
mem = [
"psutil"
]
dev = [
"black",
"pre-commit",
"isort",
"flake8-pyproject",
]
test = [
"coverage[toml] >=5.2.1",
"pytest >= 6",
"pytest-cov >= 2.11",
"pytest-env",
"pytest-xdist >= 2.5",
]
# Aliases
docs = ["sdcflows[doc]"]
tests = ["sdcflows[test]"]
all = ["sdcflows[doc,test,mem,dev,test]"]
[project.scripts]
sdcflows = "sdcflows.cli.main: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 = ["sdcflows"]
# exclude = [
# "sdcflows/tests/data", # Large test data directory
# ]
## The following two sections configure setuptools_scm in the hatch way
[tool.hatch.version]
validate-bump = true
source = "vcs"
raw-options = { version_scheme = "nipreps-calver" }
[tool.hatch.build.hooks.vcs]
version-file = "sdcflows/_version.py"
#
# Developer tool configurations
#
[tool.black]
line-length = 99
target-version = ['py39']
skip-string-normalization = true
exclude = '''
# Directories
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| _build
| build
| dist
)/
'''
[tool.isort]
profile = 'black'
skip_gitignore = true
[tool.flake8]
max-line-length = "99"
doctests = "False"
exclude = "*build/"
ignore = ["W503", "E203"]
per-file-ignores = [
"**/__init__.py : F401",
"docs/conf.py : E265",
]
[tool.pytest.ini_options]
minversion = "6"
testpaths = ["sdcflows"]
log_cli_level = "INFO"
xfail_strict = true
norecursedirs = [".git"]
addopts = [
"-svx",
"-ra",
"--strict-config",
"--strict-markers",
"--doctest-modules",
# Config pytest-cov
"--cov=sdcflows",
"--cov-report=xml",
"--cov-config=pyproject.toml",
]
doctest_optionflags = "ALLOW_UNICODE NORMALIZE_WHITESPACE ELLIPSIS"
env = "PYTHONHASHSEED=0"
filterwarnings = ["ignore::DeprecationWarning"]
junit_family = "xunit2"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"veryslow: marks tests as very slow (>5min)",
]
[tool.coverage.run]
branch = true
omit = [
'*/tests/*',
'*/__init__.py',
'*/conftest.py',
'sdcflows/_version.py'
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
'raise NotImplementedError',
'warnings\.warn',
]
[tool.codespell]
# nd - import scipy.ndimage as nd
# mapp, reson -- Mapp. and Reson. abbreviations in citation
ignore-words-list = 'nd,mapp,reson'
skip = """
./.git,*.pdf,*.svg,*.min.js,*.ipynb,ORIGINAL_LICENSE,\
./docs/source/_static/example_anatreport.html"""
[tool.check-wheel-contents]
ignore = [
"W002", # Test data contains duplicates
]