-
Notifications
You must be signed in to change notification settings - Fork 115
/
pyproject.toml
132 lines (117 loc) · 3.03 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
[build-system]
requires = ["setuptools>=70.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "yasa"
description = "YASA: Analysis of polysomnography recordings."
readme = "README.rst"
license = {text = "BSD (3-clause)"}
authors = [
{name = "Raphael Vallat", email = "[email protected]"},
{name = "Remington Mallett", email = "[email protected]"},
]
maintainers = [
{name = "Raphael Vallat", email = "[email protected]"},
{name = "Remington Mallett", email = "[email protected]"},
]
classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.18.1",
"scipy",
"pandas",
"matplotlib",
"seaborn",
"mne>=1.3",
"numba>=0.57.1",
"antropy",
"scikit-learn",
"tensorpac>=0.6.5",
"pyriemann>=0.2.7",
"sleepecg>=0.5.0",
"setuptools>=70",
"lspopt",
"ipywidgets",
"joblib",
"lightgbm",
]
[project.optional-dependencies]
test = [
"pytest>=6",
"pytest-cov",
# Ensure coverage is new enough for `source_pkgs`.
"coverage[toml]>=5.3",
"ruff"
]
docs = [
"sphinx>7.0.0",
"pydata_sphinx_theme",
"numpydoc",
"sphinx-copybutton",
"sphinx-design",
"sphinx-notfound-page",
]
[project.urls]
Homepage = "https://github.com/raphaelvallat/yasa/"
Downloads = "https://github.com/raphaelvallat/yasa/"
[tool.setuptools]
py-modules = ["yasa"]
include-package-data = true
[tool.setuptools.package-data]
yasa = [
"classifiers/*.joblib",
]
[tool.setuptools.packages.find]
namespaces = false
where = ["src"]
[tool.setuptools.dynamic]
version = {attr = "yasa.__version__"}
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--showlocals --durations=10 --maxfail=2 --cov"
doctest_optionflags= ["NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
filterwarnings = [
"ignore::UserWarning",
"ignore::RuntimeWarning",
"ignore::FutureWarning",
]
markers = ["slow"]
[tool.coverage.run]
branch = true
omit = [
"*/tests/*",
]
source_pkgs = ["yasa"]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.report]
show_missing = true
# sort = "Cover"
[tool.ruff]
line-length = 100
target-version = "py311"
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
lint.select = ["E4", "E7", "E9", "F", "I", "NPY201"]
exclude = [
"notebooks", # Skip jupyter notebook examples
"docs",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"] # Ignore star and unused import violations for __init__.py files
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = false
docstring-code-line-length = 90