-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
277 lines (254 loc) · 6.22 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
[build-system]
requires = ["setuptools>=70", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "junifer"
description = "JUelich NeuroImaging FEature extractoR"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "AGPL-3.0-only"}
authors = [
{ name = "Fede Raimondo", email = "[email protected]" },
{ name = "Synchon Mandal", email = "[email protected]" },
]
maintainers = [
{ name = "Fede Raimondo", email = "[email protected]" },
{ name = "Synchon Mandal", email = "[email protected]" },
]
keywords = [
"neuroimaging",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Natural Language :: English",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Operating System :: OS Independent",
"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",
]
dependencies = [
"click>=8.1.3,<8.2",
"numpy>=1.26.0,<2.0.0",
"scipy>=1.10.0,<=1.15.0",
"datalad>=1.0.0,<1.2.0",
"pandas>=2.0.0,<2.3.0",
"nibabel>=5.2.0,<5.4.0",
"nilearn>=0.10.3,<=0.10.4",
"sqlalchemy>=2.0.25,<=2.1.0",
"ruamel.yaml>=0.17,<0.19",
"h5py>=3.10",
"httpx[http2]>=0.26.0,<0.28.0",
"tqdm>=4.66.1,<4.67.0",
"templateflow>=23.0.0",
"lapy>=1.0.0,<2.0.0",
"lazy_loader==0.4",
"importlib_metadata; python_version<'3.9'",
"looseversion==1.3.0; python_version>='3.12'",
]
dynamic = ["version"]
[project.urls]
Changelog = "https://juaml.github.io/junifer/main/whats_new.html"
Documentation = "https://juaml.github.io/junifer"
Homepage = "https://juaml.github.io/junifer"
Source = "https://github.com/juaml/junifer"
[project.scripts]
junifer = "junifer.cli.cli:cli"
[project.optional-dependencies]
all = [
"bctpy==0.6.0",
"neurokit2>=0.1.7",
]
bct = ["bctpy==0.6.0"]
onthefly = [
"bctpy==0.6.0"
]
neurokit2 = ["neurokit2>=0.1.7"]
dev = ["tox", "pre-commit"]
docs = [
"seaborn>=0.13.0,<0.14.0",
"sphinx>=7.3.0,<8.1.0",
"sphinx-gallery>=0.17.0,<0.18.0",
"furo>=2024.4.27,<2024.9.0",
"numpydoc>=1.6.0,<1.9.0",
"julearn==0.3.3",
"sphinx-copybutton>=0.5.1,<0.5.3",
"towncrier>=23.10.0,<24.7.0",
"sphinxcontrib-mermaid>=0.8.1,<0.10",
"sphinxcontrib-towncrier==0.4.0a0",
"setuptools-scm>=8",
]
################
# Tool configs #
################
[tool.setuptools]
packages = [
"junifer",
"junifer.external.h5io.h5io",
"junifer.external.BrainPrint.brainprint",
"junifer.external.BrainPrint.brainprint.utils",
]
[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
write_to = "junifer/_version.py"
[tool.black]
line-length = 79
target-version = ["py39", "py310", "py311", "py312", "py313"]
extend-exclude = """
(
junifer/external/h5io
| junifer/external/BrainPrint
)
"""
[tool.codespell]
skip = "*/auto_examples/*,*.html,.git/,*.pyc,*/_build/*,*/h5io/*,*/BrainPrint/*"
count = ""
quiet-level = 3
ignore-words = "ignore_words.txt"
interactive = 0
builtin = "clear,rare,informal,names,usage,code"
[tool.ruff]
line-length = 79
extend-exclude = [
"__init__.py",
"__init__.pyi",
"junifer/external/h5io",
"junifer/external/BrainPrint",
"docs",
"examples",
"tools",
]
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# flake8-blind-except
"BLE",
# flake8-comprehensions
"C4",
# mccabe
"C90",
# pydocstyle
"D",
# pycodestyle errors
"E",
# pyflakes
"F",
# isort
"I",
# pep8-naming
"N",
# pygrep-hooks
"PGH",
# ruff
"RUF",
# flake8-type-checking
"TCH",
# pyupgrade
"UP",
# pycodestyle warnings
"W",
# flake8-2020
"YTT",
]
ignore = [
# Use of `functools.lru_cache` or `functools.cache` on methods can lead to
# memory leaks. The cache may retain instance references, preventing garbage
# collection.
"B019",
# abstract class with no abstract methods
"B024",
"D202",
# missing docstring in __init__, incompatible with numpydoc
"D107",
# use r""" if any backslashes in a docstring
"D301",
# class names should use CapWords convention
"N801",
# function name should be lowercase
"N802",
# variable in function should be lowercase
"N806",
# use specific rule codes when ignoring type issues
"PGH003",
]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["junifer"]
known-third-party =[
"click",
"numpy",
"scipy",
"datalad",
"pandas",
"nibabel",
"nilearn",
"sqlalchemy",
"yaml",
"importlib_metadata",
"httpx",
"tqdm",
"templateflow",
"bct",
"neurokit2",
"brainprint",
"lapy",
"pytest",
]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = "junifer"
log_cli_level = "INFO"
xfail_strict = true
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--ignore=junifer/external/h5io",
"--ignore=junifer/external/BrainPrint",
"-vv",
]
[tool.towncrier]
directory = "docs/changes/newsfragments"
filename = "docs/whats_new.rst"
package = "junifer"
# to use gh_substitutions
issue_format = ":gh:`{issue}`"
# modify to have proper toctree
underlines = "-^~"
# set line length to 79
wrap = true
# Need to put default explicitly as custom is not combined with default
[tool.towncrier.fragment.bugfix]
name = "Bugfixes"
showcontent = true
[tool.towncrier.fragment.doc]
name = "Improved Documentation"
showcontent = true
[tool.towncrier.fragment.feature]
name = "Features"
showcontent = true
[tool.towncrier.fragment.misc]
name = "Miscellaneous"
showcontent = true
[tool.towncrier.fragment.removal]
name = "Deprecations and Removals"
showcontent = true
# Add custom towncrier fragment for enhancements
[tool.towncrier.fragment.enh]
name = "Enhancements"
showcontent = true
# Add custom towncrier fragment for API changes
[tool.towncrier.fragment.change]
name = "API Changes"
showcontent = true