-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathpyproject.toml
161 lines (145 loc) · 3.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "mne-bids-pipeline"
# Keep in sync with README.md:
description = "A full-flegded processing pipeline for your MEG and EEG data"
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE.txt" }
keywords = ["science", "neuroscience", "psychology"]
authors = [
{ name = "Eric Larson" },
{ name = "Alexandre Gramfort" },
{ name = "Mainak Jas" },
{ name = "Richard Höchenberger", email = "[email protected]" },
]
classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python",
]
dependencies = [
"psutil", # for joblib
"packaging",
"numpy",
"scipy",
"matplotlib",
"nibabel",
"joblib >= 0.14",
"threadpoolctl",
"dask[distributed]",
"bokeh", # for distributed dashboard
"jupyter-server-proxy", # to have dask and jupyter working together
"scikit-learn",
"pandas",
"pyarrow", # from pandas
"seaborn",
"json_tricks",
"pydantic >= 2.0.0",
"annotated-types",
"rich",
"python-picard",
"qtpy",
"pyvista",
"pyvistaqt",
"openpyxl",
"autoreject",
"mne[hdf5] >=1.7",
"mne-bids[full]",
"filelock",
]
dynamic = ["version"]
[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
"pooch",
"psutil",
"ruff",
"jinja2",
"openneuro-py >= 2022.2.0",
"httpx >= 0.20",
"tqdm",
"Pygments",
"pyyaml",
]
docs = [
"mkdocs",
"mkdocs-material >= 9.0.4",
"mkdocs-material-extensions",
"mkdocs-macros-plugin",
"mkdocs-include-markdown-plugin",
"mkdocs-exclude",
"mkdocstrings-python",
"mike",
"livereload",
"black", # docstring reformatting
]
[project.scripts]
mne_bids_pipeline = "mne_bids_pipeline._main:main"
[project.urls]
homepage = "https://mne.tools/mne-bids-pipeline"
repository = "https://github.com/mne-tools/mne-bids-pipeline"
changelog = "http://mne.tools/mne-bids-pipeline/changes.html"
[tool.hatch.version]
source = "vcs"
raw-options = { version_scheme = "release-branch-semver" }
[tool.hatch.build]
exclude = [
"/.*",
"/codecov.yml",
"**/tests",
"/docs",
"/docs/source/examples/gen_examples.py", # specify explicitly because its exclusion is negated in .gitignore
"/Makefile",
"/CONTRIBUTING.md",
"ignore_words.txt",
]
[tool.codespell]
skip = "docs/site/*,*.html,steps/freesurfer/contrib/*"
ignore-words = "ignore_words.txt"
builtin = "clear,rare,informal,names,usage"
quiet-level = 3
interactive = 3
enable-colors = ""
count = ""
[tool.pytest.ini_options]
addopts = "-ra -vv --tb=short --cov=mne_bids_pipeline --cov-report= --junit-xml=junit-results.xml --durations=10"
testpaths = ["mne_bids_pipeline"]
junit_family = "xunit2"
[tool.ruff]
exclude = ["**/freesurfer/contrib", "dist/", "build/", "**/.*cache"]
[tool.ruff.lint]
select = ["A", "B006", "D", "E", "F", "I", "W", "UP", "TID252"]
ignore = [
"D104", # Missing docstring in public package
]
[tool.ruff.per-file-ignores]
"mne_bids_pipeline/typing.py" = ["A005"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
ignore_errors = false
scripts_are_modules = true
disable_error_code = [
# For libraries like matplotlib that we don't have types for
"import-not-found",
"import-untyped",
]
strict = true
modules = ["mne_bids_pipeline", "docs.source"]
[[tool.mypy.overrides]]
module = ["mne_bids_pipeline.steps.freesurfer.contrib.*"]
ignore_errors = true # not our code, don't validate
[[tool.mypy.overrides]]
module = ["mne_bids_pipeline.tests.*"]
disable_error_code = [
"misc", # Untyped decorator makes function "test_all_functions_return" untyped
]
[[tool.mypy.overrides]]
module = ['mne_bids_pipeline.tests.configs.*']
disable_error_code = [
"assignment", # Incompatible types in assignment
"var-annotated", # Need type annotation for "plot_psd_for_runs"
]