-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
144 lines (124 loc) · 2.81 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
134
135
136
137
138
139
140
141
142
143
144
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "mapca"
description = "Moving Average Principal Component Analysis for fMRI data"
readme = "README.md"
authors = [{name = "mapca developers"}]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
license = {file = "LICENSE"}
requires-python = ">=3.8"
dependencies = [
"nibabel>=2.5.1",
"nilearn",
"numpy>=1.16",
"scikit-learn>=1.2",
"scipy>=1.3.3",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/ME-ICA/mapca"
Documentation = "https://www.mapca.readthedocs.io"
[project.optional-dependencies]
dev = ["pre-commit"]
doc = [
"sphinx>=6.2.1",
"sphinx_copybutton",
"sphinx_rtd_theme>=1.2.2",
"sphinx-argparse",
"sphinxcontrib-bibtex",
]
tests = [
"codecov",
"coverage",
"flake8>=3.7",
"flake8-black",
"flake8-isort",
"flake8-pyproject",
"pytest",
"pytest-cov>=4.0.0",
"requests",
]
# Aliases
all = ["mapca[dev,doc,tests]"]
#
# Hatch configurations
#
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.sdist]
exclude = [".git_archival.txt"] # No longer needed in sdist
[tool.hatch.build.targets.wheel]
packages = ["mapca"]
exclude = [
"mapca/tests/data", # Large test data directory
]
## The following two sections configure setuptools_scm in the hatch way
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "mapca/_version.py"
#
# Developer tool configurations
#
[tool.black]
line-length = 99
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.github
| \.hg
| \.pytest_cache
| \.testing_data_cache
| _build
| build
| dist
)/
| mapca/_version.py
)
'''
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.flake8]
max-line-length = 99
exclude = [
"*build/",
"mapca/_version.py",
]
ignore = ["E203", "E402", "W503"]
per-file-ignores = [
"*/__init__.py: F401",
]
docstring-convention = "numpy"
[tool.coverage.run]
branch = true
omit = [
"*/tests/*",
"*/__init__.py",
"*/conftest.py",
"mapca/_version.py",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
'raise NotImplementedError',
'warnings\.warn',
]
[tool.pytest]
log_cli = true