-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3805516
commit f0459d8
Showing
2 changed files
with
89 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,105 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
requires = ["hatch-vcs", "hatchling"] | ||
|
||
[project] | ||
name = "pyprep" | ||
authors = [{name = "PyPREP developers"}] | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved", | ||
"Operating System :: MacOS", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
dependencies = [ | ||
"mne>=1.3.0", | ||
"numpy>=1.20.2", | ||
"psutil>=5.4.3", | ||
"scipy>=1.6.3", | ||
] | ||
description = "PyPREP: A Python implementation of the preprocessing pipeline (PREP) for EEG data." | ||
dynamic = ["version"] | ||
authors = [{ name = "PyPREP developers" }] | ||
maintainers = [ | ||
{ name = "Stefan Appelhoff", email = "[email protected]" }, | ||
] | ||
license = { file = "LICENSE" } | ||
readme = { file = "README.rst", content-type = "text/x-rst" } | ||
requires-python = ">=3.9" | ||
keywords = [ | ||
"EEG", | ||
"electroencephalography", | ||
"artifact", | ||
"preprocessing", | ||
"data", | ||
"neuroscience", | ||
"neuroimaging", | ||
"mne", | ||
"python", | ||
] | ||
classifiers = [ | ||
"Topic :: Scientific/Engineering", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"artifact", | ||
"data", | ||
"EEG", | ||
"electroencephalography", | ||
"mne", | ||
"neuroimaging", | ||
"neuroscience", | ||
"preprocessing", | ||
"python", | ||
] | ||
dependencies = [ | ||
"numpy>=1.20.2", | ||
"scipy>=1.6.3", | ||
"mne>=1.3.0", | ||
"psutil>=5.4.3" | ||
license = {file = "LICENSE"} | ||
maintainers = [ | ||
{email = "[email protected]", name = "Stefan Appelhoff"}, | ||
] | ||
name = "pyprep" | ||
readme = {content-type = "text/x-rst", file = "README.rst"} | ||
requires-python = ">=3.9" | ||
|
||
[project.optional-dependencies] | ||
# Variants with dependencies that will get installed on top of those listed unter | ||
# project.dependencies | ||
|
||
# Dependencies for running the test infrastructure | ||
test = [ | ||
"build", | ||
"twine", | ||
"ruff", | ||
"isort", | ||
"matplotlib", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-sugar", | ||
"pre-commit", | ||
] | ||
|
||
# Dependencies for developer installations | ||
dev = ["pyprep[test,docs]"] | ||
# Dependencies for building the documentation | ||
docs = [ | ||
"matplotlib", | ||
"sphinx>3", | ||
"pydata-sphinx-theme", | ||
"sphinx_gallery", | ||
"sphinx-copybutton", | ||
"numpydoc", | ||
"matplotlib", | ||
"numpydoc", | ||
"pydata-sphinx-theme", | ||
"sphinx-copybutton", | ||
"sphinx>3", | ||
"sphinx_gallery", | ||
] | ||
# Dependencies for running the test infrastructure | ||
test = [ | ||
"build", | ||
"isort", | ||
"matplotlib", | ||
"pre-commit", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-sugar", | ||
"ruff", | ||
"twine", | ||
] | ||
|
||
# Dependencies for developer installations | ||
dev = ["pyprep[test,docs]"] | ||
|
||
|
||
[project.urls] | ||
"Homepage" = "https://pyprep.readthedocs.io/en/latest" | ||
"Bug Tracker" = "https://github.com/sappelhoff/pyprep/issues/" | ||
"Documentation" = "https://pyprep.readthedocs.io/en/latest" | ||
"Homepage" = "https://pyprep.readthedocs.io/en/latest" | ||
"Source Code" = "https://github.com/sappelhoff/pyprep" | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true # allow specifying URLs in our dependencies | ||
[tool.coverage.report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = ["if 0:", "if __name__ == .__main__.:", "pragma: no cover"] | ||
|
||
[tool.coverage.run] | ||
omit = ["*tests*"] | ||
|
||
[tool.hatch.build] | ||
exclude = [ | ||
"/.*", | ||
"tests/**", | ||
"/examples", | ||
"/docs", | ||
"/.github/**", | ||
"matprep_artifacts/**", | ||
"matprep_artifacts" | ||
"/.*", | ||
"/.github/**", | ||
"/docs", | ||
"/examples", | ||
"matprep_artifacts", | ||
"matprep_artifacts/**", | ||
"tests/**", | ||
] | ||
|
||
[tool.hatch.metadata] | ||
allow-direct-references = true # allow specifying URLs in our dependencies | ||
|
||
[tool.hatch.version] | ||
raw-options = {version_scheme = "release-branch-semver"} | ||
source = "vcs" | ||
raw-options = { version_scheme = "release-branch-semver" } | ||
|
||
[tool.coverage.run] | ||
omit = ["*tests*"] | ||
|
||
[tool.coverage.report] | ||
# Regexes for lines to exclude from consideration | ||
exclude_lines = ["pragma: no cover", "if 0:", "if __name__ == .__main__.:"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = """. --cov=pyprep/ --cov-report=xml --cov-config=pyproject.toml --verbose -s""" | ||
|
@@ -114,12 +108,18 @@ filterwarnings = [ | |
|
||
[tool.ruff] | ||
extend-exclude = [ | ||
"matprep_artifacts/**" | ||
"matprep_artifacts/**", | ||
] | ||
|
||
[tool.ruff.lint] | ||
select = ["A", "D", "E", "F", "I", "UP", "W"] | ||
ignore = ["A002"] | ||
select = ["A", "D", "E", "F", "I", "UP", "W"] | ||
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "numpy" | ||
|
||
[tool.tomlsort] | ||
all = true | ||
ignore_case = true | ||
spaces_before_inline_comment = 2 | ||
trailing_comma_inline_array = true |