1
1
[build-system ]
2
- requires = [" hatchling" , " hatch-vcs" ]
3
2
build-backend = " hatchling.build"
3
+ requires = [" hatch-vcs" , " hatchling" ]
4
4
5
5
[project ]
6
- name = " pyprep"
6
+ authors = [{name = " PyPREP developers" }]
7
+ classifiers = [
8
+ " Intended Audience :: Developers" ,
9
+ " Intended Audience :: Science/Research" ,
10
+ " License :: OSI Approved" ,
11
+ " Operating System :: MacOS" ,
12
+ " Operating System :: Microsoft :: Windows" ,
13
+ " Operating System :: POSIX :: Linux" ,
14
+ " Programming Language :: Python :: 3.10" ,
15
+ " Programming Language :: Python :: 3.11" ,
16
+ " Programming Language :: Python :: 3.12" ,
17
+ " Programming Language :: Python :: 3.9" ,
18
+ " Programming Language :: Python" ,
19
+ " Topic :: Scientific/Engineering" ,
20
+ ]
21
+ dependencies = [
22
+ " mne>=1.3.0" ,
23
+ " numpy>=1.20.2" ,
24
+ " psutil>=5.4.3" ,
25
+ " scipy>=1.6.3" ,
26
+ ]
7
27
description = " PyPREP: A Python implementation of the preprocessing pipeline (PREP) for EEG data."
8
28
dynamic = [" version" ]
9
- authors = [{ name = " PyPREP developers" }]
10
- maintainers = [
11
- { name = " Stefan Appelhoff" , email = " stefan.appelhoff@mailbox.org" },
12
- ]
13
- license = { file = " LICENSE" }
14
- readme = { file = " README.rst" , content-type = " text/x-rst" }
15
- requires-python = " >=3.9"
16
29
keywords = [
17
- " EEG" ,
18
- " electroencephalography" ,
19
- " artifact" ,
20
- " preprocessing" ,
21
- " data" ,
22
- " neuroscience" ,
23
- " neuroimaging" ,
24
- " mne" ,
25
- " python" ,
26
- ]
27
- classifiers = [
28
- " Topic :: Scientific/Engineering" ,
29
- " Intended Audience :: Science/Research" ,
30
- " Intended Audience :: Developers" ,
31
- " License :: OSI Approved" ,
32
- " Operating System :: Microsoft :: Windows" ,
33
- " Operating System :: POSIX :: Linux" ,
34
- " Operating System :: MacOS" ,
35
- " Programming Language :: Python" ,
36
- " Programming Language :: Python :: 3.9" ,
37
- " Programming Language :: Python :: 3.10" ,
38
- " Programming Language :: Python :: 3.11" ,
39
- " Programming Language :: Python :: 3.12" ,
30
+ " artifact" ,
31
+ " data" ,
32
+ " EEG" ,
33
+ " electroencephalography" ,
34
+ " mne" ,
35
+ " neuroimaging" ,
36
+ " neuroscience" ,
37
+ " preprocessing" ,
38
+ " python" ,
40
39
]
41
- dependencies = [
42
- " numpy>=1.20.2" ,
43
- " scipy>=1.6.3" ,
44
- " mne>=1.3.0" ,
45
- " psutil>=5.4.3"
40
+ license = {file = " LICENSE" }
41
+ maintainers = [
42
+ {email = " stefan.appelhoff@mailbox.org" , name = " Stefan Appelhoff" },
46
43
]
44
+ name = " pyprep"
45
+ readme = {content-type = " text/x-rst" , file = " README.rst" }
46
+ requires-python = " >=3.9"
47
47
48
48
[project .optional-dependencies ]
49
- # Variants with dependencies that will get installed on top of those listed unter
50
- # project.dependencies
51
-
52
- # Dependencies for running the test infrastructure
53
- test = [
54
- " build" ,
55
- " twine" ,
56
- " ruff" ,
57
- " isort" ,
58
- " matplotlib" ,
59
- " pytest" ,
60
- " pytest-cov" ,
61
- " pytest-sugar" ,
62
- " pre-commit" ,
63
- ]
64
-
49
+ # Dependencies for developer installations
50
+ dev = [" pyprep[test,docs]" ]
65
51
# Dependencies for building the documentation
66
52
docs = [
67
- " matplotlib" ,
68
- " sphinx>3" ,
69
- " pydata-sphinx-theme" ,
70
- " sphinx_gallery" ,
71
- " sphinx-copybutton" ,
72
- " numpydoc" ,
53
+ " matplotlib" ,
54
+ " numpydoc" ,
55
+ " pydata-sphinx-theme" ,
56
+ " sphinx-copybutton" ,
57
+ " sphinx>3" ,
58
+ " sphinx_gallery" ,
59
+ ]
60
+ # Dependencies for running the test infrastructure
61
+ test = [
62
+ " build" ,
63
+ " isort" ,
64
+ " matplotlib" ,
65
+ " pre-commit" ,
66
+ " pytest" ,
67
+ " pytest-cov" ,
68
+ " pytest-sugar" ,
69
+ " ruff" ,
70
+ " twine" ,
73
71
]
74
-
75
- # Dependencies for developer installations
76
- dev = [" pyprep[test,docs]" ]
77
-
78
72
79
73
[project .urls ]
80
- "Homepage" = " https://pyprep.readthedocs.io/en/latest"
81
74
"Bug Tracker" = " https://github.com/sappelhoff/pyprep/issues/"
82
75
"Documentation" = " https://pyprep.readthedocs.io/en/latest"
76
+ "Homepage" = " https://pyprep.readthedocs.io/en/latest"
83
77
"Source Code" = " https://github.com/sappelhoff/pyprep"
84
78
85
- [tool .hatch .metadata ]
86
- allow-direct-references = true # allow specifying URLs in our dependencies
79
+ [tool .coverage .report ]
80
+ # Regexes for lines to exclude from consideration
81
+ exclude_lines = [" if 0:" , " if __name__ == .__main__.:" , " pragma: no cover" ]
82
+
83
+ [tool .coverage .run ]
84
+ omit = [" *tests*" ]
87
85
88
86
[tool .hatch .build ]
89
87
exclude = [
90
- " /.*" ,
91
- " tests /**" ,
92
- " /examples " ,
93
- " /docs " ,
94
- " /.github/** " ,
95
- " matprep_artifacts/**" ,
96
- " matprep_artifacts "
88
+ " /.*" ,
89
+ " /.github /**" ,
90
+ " /docs " ,
91
+ " /examples " ,
92
+ " matprep_artifacts " ,
93
+ " matprep_artifacts/**" ,
94
+ " tests/** " ,
97
95
]
98
96
97
+ [tool .hatch .metadata ]
98
+ allow-direct-references = true # allow specifying URLs in our dependencies
99
+
99
100
[tool .hatch .version ]
101
+ raw-options = {version_scheme = " release-branch-semver" }
100
102
source = " vcs"
101
- raw-options = { version_scheme = " release-branch-semver" }
102
-
103
- [tool .coverage .run ]
104
- omit = [" *tests*" ]
105
-
106
- [tool .coverage .report ]
107
- # Regexes for lines to exclude from consideration
108
- exclude_lines = [" pragma: no cover" , " if 0:" , " if __name__ == .__main__.:" ]
109
103
110
104
[tool .pytest .ini_options ]
111
105
addopts = """ . --cov=pyprep/ --cov-report=xml --cov-config=pyproject.toml --verbose -s"""
@@ -114,12 +108,18 @@ filterwarnings = [
114
108
115
109
[tool .ruff ]
116
110
extend-exclude = [
117
- " matprep_artifacts/**"
111
+ " matprep_artifacts/**" ,
118
112
]
119
113
120
114
[tool .ruff .lint ]
121
- select = [" A" , " D" , " E" , " F" , " I" , " UP" , " W" ]
122
115
ignore = [" A002" ]
116
+ select = [" A" , " D" , " E" , " F" , " I" , " UP" , " W" ]
123
117
124
118
[tool .ruff .lint .pydocstyle ]
125
119
convention = " numpy"
120
+
121
+ [tool .tomlsort ]
122
+ all = true
123
+ ignore_case = true
124
+ spaces_before_inline_comment = 2
125
+ trailing_comma_inline_array = true
0 commit comments