forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
156 lines (142 loc) · 4.57 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
[project]
name = "mne"
description = "MNE-Python project for MEG and EEG data analysis."
maintainers = [
{ name = "Alexandre Gramfort", email = "[email protected]" },
]
dynamic = ["version"]
license = { text = "BSD-3-Clause" }
readme = { file = "README.rst", content-type = "text/x-rst" }
requires-python = ">=3.8"
keywords = [
"neuroscience",
"neuroimaging",
"MEG",
"EEG",
"ECoG",
"fNIRS",
"brain",
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
]
[project.scripts]
mne = "mne.commands.utils:main"
[project.urls]
Homepage = "https://mne.tools/"
Download = "https://pypi.org/project/scikit-learn/#files"
"Bug Tracker" = "https://github.com/mne-tools/mne-python/issues/"
Documentation = "https://mne.tools/"
Forum = "https://mne.discourse.group/"
"Source Code" = "https://github.com/mne-tools/mne-python/"
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "mne/_version.py"
version_scheme = "release-branch-semver"
[options]
zip_safe = false # the package can run out of an .egg file
include_package_data = true
[tool.setuptools.package-data]
"mne" = [
"data/eegbci_checksums.txt",
"data/*.sel",
"data/icos.fif.gz",
"data/coil_def*.dat",
"data/helmets/*.fif.gz",
"data/FreeSurferColorLUT.txt",
"data/image/*gif",
"data/image/*lout",
"data/fsaverage/*.fif",
"channels/data/layouts/*.lout",
"channels/data/layouts/*.lay",
"channels/data/montages/*.sfp",
"channels/data/montages/*.txt",
"channels/data/montages/*.elc",
"channels/data/neighbors/*.mat",
"datasets/sleep_physionet/SHA1SUMS",
"datasets/_fsaverage/*.txt",
"datasets/_infant/*.txt",
"datasets/_phantom/*.txt",
"html/*.js",
"html/*.css",
"html_templates/repr/*.jinja",
"html_templates/report/*.jinja",
"icons/*.svg",
"icons/*.png",
"io/artemis123/resources/*.csv",
"io/edf/gdf_encodes.txt",
]
[tool.codespell]
ignore-words = "ignore_words.txt"
builtin = "clear,rare,informal,names,usage"
skip = "doc/references.bib"
[tool.ruff]
select = ["E", "F", "W", "D", "I"]
exclude = ["__init__.py", "constants.py", "resources.py"]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D413", # Missing blank line after last section
]
[tool.ruff.pydocstyle]
convention = "numpy"
ignore-decorators = [
"property",
"setter",
"mne.utils.copy_function_doc_to_method_doc",
"mne.utils.copy_doc",
"mne.utils.deprecated",
]
[tool.ruff.per-file-ignores]
"tutorials/time-freq/10_spectrum_class.py" = [
"E501", # line too long
]
"mne/datasets/*/*.py" = [
"D103", # Missing docstring in public function
]
"mne/utils/tests/test_docs.py" = [
"D101", # Missing docstring in public class
"D410", # Missing blank line after section
"D411", # Missing blank line before section
"D414", # Section has no content
]
"examples/*/*.py" = [
"D205", # 1 blank line required between summary line and description
]
[tool.pytest.ini_options]
addopts = """--durations=20 --doctest-modules -ra --cov-report= --tb=short \
--cov-branch --doctest-ignore-import-errors --junit-xml=junit-results.xml \
--ignore=doc --ignore=logo --ignore=examples --ignore=tutorials \
--ignore=mne/gui/_*.py --ignore=mne/icons --ignore=tools \
--ignore=mne/report/js_and_css \
--color=yes --capture=sys"""
junit_family = "xunit2"
[tool.black]
exclude = "(dist/)|(build/)|(.*\\.ipynb)"
[tool.bandit.assert_used]
skips = ["*/test_*.py"] # assert statements are good practice with pytest
[tool.rstcheck]
report_level = "WARNING"
ignore_roles = [
"func", "class", "term", "ref", "doc", "gh", "file", "samp", "meth", "mod", "kbd",
"newcontrib", "footcite", "footcite:t", "eq", "py:mod", "attr", "py:class", "exc",
]
ignore_directives = [
"rst-class", "tab-set", "grid", "toctree", "footbibliography", "autosummary",
"currentmodule", "automodule", "cssclass", "tabularcolumns", "minigallery",
"autoclass", "highlight", "dropdown", "graphviz", "glossary", "autofunction",
"bibliography",
]
ignore_messages = "^.*(Unknown target name|Undefined substitution referenced)[^`]*$"