-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
191 lines (168 loc) · 3.93 KB
/
Copy pathpyproject.toml
File metadata and controls
191 lines (168 loc) · 3.93 KB
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
[build-system]
requires = ["hatchling>=1.24", "hatch-vcs>=0.3"]
build-backend = "hatchling.build"
[project]
name = "modelarrayio"
description = "ModelArrayIO: convert fixel, voxel, and greyordinate neuroimaging data to/from HDF5 for the ModelArray R package"
readme = "README.rst"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [
{ name = "The PennLINC developers", email = "Matthew.Cieslak@pennmedicine.upenn.edu" },
]
maintainers = [
{ name = "Matt Cieslak", email = "Matthew.Cieslak@pennmedicine.upenn.edu" },
]
keywords = ["neuroimaging", "modelarray", "hdf5", "fixel", "nifti", "cifti"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"nibabel>=5.0",
"numpy>=1.26",
"pandas>=2.0",
"tqdm>=4.65",
"h5py>=3.10",
"tiledb>=0.23",
]
dynamic = ["version"]
[project.optional-dependencies]
s3 = ["boto3"]
doc = [
"sphinx>=6.2.1",
"myst-parser>=2",
"sphinx-argparse",
"sphinx-copybutton",
"sphinx_rtd_theme",
"sphinxcontrib-apidoc",
"sphinxcontrib-bibtex",
"sphinx-gallery",
]
test = [
# Lower bounds matter for tox `uv_resolution = lowest-direct` (py311-min CI):
# unpinned deps can resolve to ancient releases (e.g. coverage 3.x) that do not build on Python 3.
"ruff>=0.4",
"pre-commit>=3.5",
"coverage[toml]>=7.0",
"pytest>=8",
"pytest-cov>=5",
"pytest-xdist>=3",
"pytest-env>=1.0",
]
all = ["modelarrayio[doc,test,s3]"]
[project.urls]
Homepage = "https://github.com/PennLINC/ModelArrayIO"
Repository = "https://github.com/PennLINC/ModelArrayIO"
Documentation = "https://modelarrayio.readthedocs.io"
[project.scripts]
modelarrayio = "modelarrayio.cli.main:main"
#
# Hatch
#
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
exclude = [".git_archival.txt"]
[tool.hatch.build.targets.wheel]
packages = ["src/modelarrayio"]
[tool.hatch.version]
source = "vcs"
fallback-version = "0.1.0"
[tool.hatch.build.hooks.vcs]
version-file = "src/modelarrayio/__about__.py"
#
# Developer tool configurations
#
# Disable black
[tool.black]
exclude = ".*"
[tool.ruff]
line-length = 99
src = ["src"]
extend-exclude = ["src/modelarrayio/__about__.py"]
[tool.ruff.lint]
extend-select = [
"I",
"UP",
"YTT",
"S",
"BLE",
"B",
"A",
"C4",
# "CPY",
"DTZ",
"T10",
# "EM",
"EXE",
"FA",
"ISC",
"ICN",
"LOG",
"PIE",
"PYI",
"PT",
"Q",
# "SIM",
# "TID",
"FLY",
# "PD",
"PERF",
"W",
"PGH",
"PLC",
"PLE",
"PLW",
"FURB",
"RUF",
]
ignore = [
"S105",
"S311", # We are not using random for cryptographic purposes
"S603", # subprocess used only for trusted commands (git, pandoc, test runners)
"PIE790",
"PERF203",
"PLC0415",
"PLW2901",
"RUF005",
"RUF012",
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.extend-per-file-ignores]
"*/test_*.py" = ["S101"]
"docs/conf.py" = ["A001"]
"src/modelarrayio/__about__.py" = ["Q000", "RUF022"]
[tool.ruff.format]
quote-style = "single"
[tool.coverage.run]
# parallel: required so pytest-cov can combine data without "Can't combine arc data with line data" when
# pytest-xdist is installed (even with a single worker). See coverage.py + pytest-cov docs.
parallel = true
branch = true
omit = [
"*/test/*",
"*/__init__.py",
"*/conftest.py",
"src/modelarrayio/__about__.py",
]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"warnings\\.warn",
]
[tool.pytest.ini_options]
markers = [
"s3: tests that require network access to public S3 (deselect with '-m not s3')",
"downloaded_data: tests that download external fixture data before running",
]
log_cli = true
[tool.codespell]
skip = '.git,*.pdf,*.svg,*.html,*.bib,uv.lock'
ignore-words-list = 'fixel,fixels'