-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (122 loc) · 3.53 KB
/
pyproject.toml
File metadata and controls
133 lines (122 loc) · 3.53 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
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[project]
name = "bootstracts"
version = "0.2.0"
description = "Probabilistic structural connectomics via tractogram bootstrap"
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "Velho Mago", email = "rdneuro@users.noreply.github.com" },
]
keywords = [
"neuroscience",
"connectomics",
"tractography",
"bootstrap",
"uncertainty-quantification",
"diffusion-mri",
"structural-connectivity",
"brain-networks",
"neuroimaging",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Typing :: Typed",
]
dependencies = [
"numpy>=1.22",
"scipy>=1.9",
"matplotlib>=3.5",
"h5py>=3.7",
]
[project.optional-dependencies]
gpu = [
"cupy>=12.0",
]
jax = [
"jax>=0.4",
"jaxlib>=0.4",
]
all = [
"cupy>=12.0",
"jax>=0.4",
"jaxlib>=0.4",
"nilearn>=0.10",
"dipy>=1.7",
]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"hypothesis>=6.0",
"ruff>=0.1",
"mypy>=1.0",
"pre-commit>=3.0",
]
docs = [
"sphinx>=6.0",
"sphinx-rtd-theme>=1.0",
"numpydoc>=1.5",
"myst-parser>=2.0",
]
[project.urls]
Homepage = "https://github.com/rdneuro/bootstracts"
Documentation = "https://bootstracts.readthedocs.io"
Repository = "https://github.com/rdneuro/bootstracts"
Issues = "https://github.com/rdneuro/bootstracts/issues"
Changelog = "https://github.com/rdneuro/bootstracts/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
bootstracts = ["py.typed"]
# ── ruff ──────────────────────────────────────────────────────────────
[tool.ruff]
target-version = "py39"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"NPY", # numpy-specific
]
ignore = [
"E501", # line too long (handled by formatter)
"N802", # function name lowercase (numpy convention)
"N803", # argument name lowercase
"N806", # variable lowercase
"B023", # loop variable not used
"SIM108", # ternary operator
]
[tool.ruff.lint.isort]
known-first-party = ["bootstracts"]
# ── mypy ──────────────────────────────────────────────────────────────
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
# ── pytest ────────────────────────────────────────────────────────────
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"
markers = [
"slow: marks tests as slow (run with --runslow)",
"gpu: marks tests requiring GPU",
]