-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
133 lines (120 loc) · 2.85 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "giga_connectome"
description = "Generate connectome from fMRIPrep outputs"
readme = "README.md"
requires-python = ">=3.9"
license = { file="LICENSE" }
authors = [
{ name="Hao-Ting Wang", email="[email protected]" },
]
classifiers = [
"Programming Language :: Python :: 3",
"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 = [
"nilearn[plotting] >=0.10.3",
"pybids >=0.15.0, <0.16.0",
"templateflow < 23.0.0",
"setuptools",
"jinja2 >= 2.0",
"rich",
]
dynamic = ["version"]
[project.scripts]
giga_connectome = "giga_connectome.run:main"
[project.optional-dependencies]
dev = [
"black",
"flake8",
"pre-commit",
"giga_connectome[test]",
'tox',
'mypy',
'types-all',
'pandas-stubs',
'types-tqdm'
]
test = [
"pytest",
"pytest-cov",
]
docs = [
"sphinx",
"sphinx_rtd_theme",
"myst-parser",
"sphinx-argparse"
]
# Aliases
tests = ["giga_connectome[test]"]
[project.urls]
"Homepage" = "https://github.com/bids-apps/giga_connectome"
"Documentation" = "https://giga-connectome.readthedocs.io/en/latest/"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "giga_connectome/_version.py"
[tool.hatch.build.targets.sdist]
exclude = [".git_archival.txt"]
[tool.hatch.build.targets.wheel]
packages = ["giga_connectome"]
exclude = [
".github",
"giga_connectome/data/test_data"
]
[tool.black]
target-version = ['py38']
exclude = "giga_connectome/_version.py"
line-length = 79
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
enable_error_code = ["ignore-without-code", "redundant-expr"] # "truthy-bool"
no_implicit_optional = true
show_error_codes = true
# strict = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"bids.*",
"giga_connectome._version",
"h5py.*",
"nibabel.*",
"nilearn.*",
"nilearn.connectome.*",
"nilearn.image.*",
"nilearn.interfaces.*",
"nilearn.maskers.*",
"nilearn.masking.*",
"rich.*",
"scipy.ndimage.*",
"templateflow.*",
]
[[tool.mypy.overrides]]
ignore_errors = true
module = [
'giga_connectome.tests.*',
'download_templates',
'conf',
]
[tool.pytest.ini_options]
minversion = "7"
log_cli_level = "INFO"
xfail_strict = true
testpaths = ["giga_connectome/tests"]
addopts = ["-ra", "--strict-config", "--strict-markers", "--doctest-modules", "-v"]
markers = [
"smoke: smoke tests that will run on a downsampled real dataset (deselect with '-m \"not smoke\"')",
]
# filterwarnings = ["error"]