-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
223 lines (203 loc) · 5.22 KB
/
Copy pathpyproject.toml
File metadata and controls
223 lines (203 loc) · 5.22 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "eegprep"
dynamic = ["version"]
authors = [
{ name="Arnaud Delorme", email="adelorme@gmail.com" },
{ name="Young Truong", email="dt.young112@gmail.com" },
]
description = "EEG preprocessing pipeline on Python"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
keywords = ["eeg", "preprocessing", "EEGLAB"]
dependencies = [
"colorama>=0.4.6",
"eeglabio>=0.1.2",
"h5py>=3.3.0",
"matplotlib>=3.4.0",
"mne>=1.10.0",
"neo>=0.14.2",
"numpy>=1.20",
"oct2py>=5.5.0",
"packaging>=23.0",
"psutil>=7.0.0",
"pybids>=0.4",
"pyedflib>=0.1.42",
"pyyaml>=6.0",
"python-picard>=0.8,<0.9",
"scipy>=1.7.0",
"sympy>=1.14.0",
"threadpoolctl>=3.6.0",
]
[project.optional-dependencies]
torch = [
"torch>=2.0"
]
gui = [
"pyqtgraph>=0.13.7",
"PySide6>=6.6",
]
console = [
"eegprep[gui]",
"ipython>=8.0",
]
docs = [
"sphinx>=7.0",
"pydata-sphinx-theme>=0.14.0",
"sphinx-gallery>=0.14.0",
"numpydoc>=1.6.0",
"sphinx-design>=0.5.0",
"myst-parser>=1.0.0",
"sphinx-copybutton>=0.5.0",
"sphinx-togglebutton>=0.3.0",
"sphinxcontrib-spelling>=7.1.0"
]
all = [
"eegprep[torch]",
"eegprep[gui]",
"eegprep[console]",
"eegprep[docs]",
]
[project.scripts]
eegprep = "eegprep.cli.main:main"
eegprep-gui = "eegprep.functions.adminfunc.eeglab:main"
eegprep-console = "eegprep.functions.adminfunc.console:main"
eegprep-validate-extension-catalog = "eegprep.extension_catalog_validation:main"
[dependency-groups]
dev = [
# Keep `uv run eegprep-console --full` working from a fresh source checkout.
# Published installs still keep GUI/console dependencies behind extras.
"ipython>=8.0",
"pytest>=8.0",
"pyqtgraph>=0.13.7",
"PySide6>=6.6",
"ruff>=0.15.14",
"tomli>=2.0; python_version < '3.11'",
"ty>=0.0.39",
]
release = [
"build>=1.2",
"twine>=5.0",
]
[tool.uv]
constraint-dependencies = [
# Keep uv-managed development installs on wheel-compatible releases for
# older SCCN Linux servers; these constraints are not published package
# requirements.
"contourpy<1.3.3",
"greenlet<3.3",
"h5py<3.15",
"numpy<2.3",
"pandas<2.3.3",
"pyzmq<27",
"scipy<1.17",
]
required-environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'",
]
[tool.ruff]
target-version = "py310"
line-length = 120
extend-exclude = [
"pre-commit.py",
"sample_notebooks/**",
"scripts/tmp_pipeline_for_ppt.py",
"src/eegprep/eeglab/**",
]
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
[tool.ruff.lint.per-file-ignores]
# These development scripts adjust sys.path before importing package modules.
"tools/visual_parity/export_eegprep_menu_inventory.py" = ["E402"]
"tests/matlab/*.py" = ["E402"]
[tool.ty.environment]
python-version = "3.10"
root = ["."]
[tool.ty.src]
include = [
"src/eegprep",
"scripts",
"tools",
]
exclude = [
"scripts/mne_iclabel_script.py",
"scripts/test_flask.py",
"scripts/tmp_pipeline_for_ppt.py",
"src/eegprep/eeglab/**",
]
[tool.ty.terminal]
output-format = "concise"
[tool.ty.rules]
# EEGPrep currently uses dynamic EEGLAB-style EEG dictionaries and optional GUI
# modules extensively. Keep ty blocking on high-signal name/import/syntax
# failures now, while avoiding CI noise from broad annotation migration work.
invalid-argument-type = "ignore"
invalid-assignment = "ignore"
invalid-context-manager = "ignore"
invalid-parameter-default = "ignore"
invalid-return-type = "ignore"
invalid-type-form = "ignore"
no-matching-overload = "ignore"
not-iterable = "ignore"
not-subscriptable = "ignore"
unsupported-operator = "ignore"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
]
markers = [
"slow: tests that are too slow for quick local iteration",
"matlab: tests that require MATLAB or MATLAB Engine",
"octave: tests that require Octave",
"gui: tests that exercise GUI behavior",
"visual: visual parity capture or comparison tests",
"parity: numerical or behavioral parity tests against EEGLAB/MATLAB",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["eegprep.eeglab*"]
[tool.setuptools.package-data]
"eegprep" = [
"resources/**/*.json",
"resources/**/*.locs",
"resources/**/*.m",
"resources/**/*.mat",
"resources/**/*.md",
"resources/**/*.npz",
"resources/**/*.sfp",
"resources/**/*.transform",
"resources/**/*.txt",
"resources/**/*.xyz",
"plugins/**/*.json",
"plugins/**/*.locs",
"plugins/**/*.mat",
"plugins/**/*.md",
"plugins/**/*.sfp",
"plugins/**/*.tsv",
"plugins/**/*.txt",
]
[tool.setuptools.exclude-package-data]
"eegprep" = ["bin/*", "eeglab/**"]
[tool.setuptools.dynamic]
version = { attr = "eegprep.__version__" }
[project.urls]
Homepage = "https://github.com/sccn/eegprep"
Issues = "https://github.com/sccn/eegprep/issues"