-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
122 lines (110 loc) · 2.58 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling", "hatch-vcs"]
[project]
authors = [
{name = "Elizabeth DuPre", email = "[email protected]"},
{name = "Thomas Bazeille"},
{name = "Bertrand Thirion"}
]
classifiers = [
"Programming Language :: Python :: 3"
]
dependencies = [
"numpy<2",
"pandas",
"matplotlib",
"scikit-learn",
"joblib",
"scipy",
"nibabel",
"nilearn>=0.10.3",
"POT",
"fastsrm",
"fugw>=0.1.1",
"torch"
]
description = "Functional alignment for fMRI"
dynamic = ["version"]
license = {file = "LICENSE"}
name = "fmralign"
readme = "README.md"
requires-python = ">=3.9"
[project.optional-dependencies]
# Useful for development
dev = [
"fmralign[jax,doc,test]",
"ruff"
]
# For building the documentation
doc = [
"coverage",
"myst-parser",
"numpydoc",
"ruamel.yaml",
"sphinx",
"sphinx-copybutton",
"sphinx-design",
"sphinx-gallery",
"sphinxcontrib-bibtex",
"sphinxext-opengraph",
"furo"
]
# To use JAX-accelerated Optimal Transport
jax = ["jax", "ott-jax > 0.3.0"]
# For running unit and docstring tests
test = [
"coverage",
"pytest>=6.0.0",
"pytest-cov"
]
[tool.hatch.build.hooks.vcs]
version-file = "fmralign/_version.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
source = "vcs"
[tool.ruff]
target-version = "py311"
extend-exclude = [
"doc/auto_examples/*"
]
include = ["pyproject.toml", "fmralign/**/*.py", "examples/**/*.py", "doc/**/*.py"]
indent-width = 4
line-length = 79
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = false
[tool.ruff.lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
select = [
"E", # pycodestyle
"F", # pyflakes
]
ignore = [
"E501" # Line too long
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.mccabe]
max-complexity = 41
[tool.ruff.lint.per-file-ignores]
"{doc}/*" = ["D103"]
"{examples}/*" = ["B018", "D103", "D400", "E402"]
"*/{tests}/*" = ["D100", "D101", "D102", "D103", "D104", "D205", "D400", "D401"]
"__init__.py" = ["D104", "E402"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pylint]
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-args
max-args = 26
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-branches
max-branches = 48
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-returns
max-returns = 7
# https://docs.astral.sh/ruff/settings/#lint_pylint_max-statements
max-statements = 151