-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
118 lines (105 loc) · 2.51 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "wonkyconn"
description = "Evaluating the residual motion in fMRI connectome and visualise reports."
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [{ name = "Hao-Ting Wang", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"setuptools",
"numpy",
"scipy",
"patsy",
"pandas",
"rich",
"numba",
"seaborn",
"matplotlib",
]
dynamic = ["version"]
[project.scripts]
wonkyconn = "wonkyconn.run:main"
[project.optional-dependencies]
dev = [
"black",
"flake8",
"pre-commit",
"wonkyconn[test]",
"tox",
"mypy",
"types-all",
"pandas-stubs",
"types-tqdm",
]
test = ["nibabel", "nilearn", "pytest", "pytest-cov", "templateflow < 23.0.0"]
docs = ["sphinx", "sphinx_rtd_theme", "myst-parser", "sphinx-argparse"]
# Aliases
tests = ["wonkyconn[test]"]
[project.urls]
"Homepage" = "https://github.com/SIMEXP/wonkyconn"
"Documentation" = "https://wonkyconn.readthedocs.io/en/latest/"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "wonkyconn/_version.py"
[tool.hatch.build.targets.sdist]
exclude = [".git_archival.txt"]
[tool.hatch.build.targets.wheel]
packages = ["wonkyconn"]
exclude = [".github", "wonkyconn/data/test_data"]
[tool.black]
target-version = ["py311"]
exclude = "wonkyconn/_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.*",
"matplotlib.*",
"numba.*",
"patsy.*",
"rich.*",
"scipy.*",
"seaborn.*",
"statsmodels.*",
"templateflow.*",
]
[[tool.mypy.overrides]]
ignore_errors = true
module = ["wonkyconn.tests.*", "conf"]
[tool.pytest.ini_options]
markers = [
"smoke: smoke tests that will run on a simulated dataset (deselect with '-m \"not smoke\"')",
]
# filterwarnings = ["error"]
minversion = "7"
log_cli_level = "INFO"
xfail_strict = true
testpaths = ["wonkyconn/tests"]
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--doctest-modules",
"-v",
]