-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
145 lines (125 loc) · 3.94 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
[project]
name = "PyRASA"
dynamic = ["version"]
description = "Spectral parametrization based on IRASA"
readme = "README.md"
license = { text = "BSD-3-Clause" }
authors = [
{name = "Fabian Schmidt", email = "[email protected]"},
{name = "Thomas Hartmann", email = "[email protected]"}
]
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Typing :: Typed'
]
keywords=['spectral parametrization', 'oscillations', 'power spectra', '1/f']
requires-python = ">= 3.11"
dependencies = ["numpy>=1.26,<3", "pandas>=2.1,<3", "scipy>=1.12", "attrs"]
[project.optional-dependencies]
mne = ['mne']
[project.urls]
repository = "https://github.com/schmidtfa/pyrasa"
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "win-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
pyrasa = { path = ".", editable = true }
[tool.pixi.feature.jupyter.dependencies]
mne = ">=1.7.0,<2"
jupyter = ">=1.0.0,<1.1"
ipython = ">=8.26.0,<8.27"
ipykernel = ">=6.29.5,<6.30"
seaborn = ">=0.13.2,<0.14"
matplotlib = ">=3.9.1,<3.10"
[tool.pixi.feature.doc.dependencies]
sphinx = "*"
pydata-sphinx-theme = "*"
sphinx-autobuild = "*"
numpydoc = "*"
nbsphinx = "*"
[tool.pixi.feature.doc.pypi-dependencies]
sphinx_gallery = "*"
sphinxcontrib-serializinghtml = "*"
[tool.pixi.tasks]
test = "pytest --cov=pyrasa --cov-report=lcov"
lint = "ruff format && ruff check --fix"
lint_ci = "ruff check"
check_types = "mypy pyrasa tests"
version_minor = "hatch version minor && hatch version dev"
version_fix = "hatch version fix && hatch version dev"
doc_dev = "sphinx-autobuild --ignore 'doc/source/auto_examples/*' doc/source doc/build"
build_docs = "cd doc; make clean; make html"
[tool.pixi.dependencies]
hatch = ">=1.12.0,<1.13"
ipython = ">=8.26.0,<8.27"
ipykernel = ">=6.29.5,<6.30"
ruff = ">=0.5.2,<0.6"
pre-commit = ">=3.7.1,<3.8"
pytest = ">=8.2.2,<8.3"
pytest-cov = ">=5.0.0,<5.1"
neurodsp = ">=2.2.0,<2.3"
mypy = ">=1.10.1,<2"
pandas-stubs = ">=2.2.2.240603,<3"
tabulate = ">=0.9.0,<0.10"
[tool.pixi.feature]
py311 = {dependencies = {python="3.11.*"}}
py312 = {dependencies = {python="3.12.*"}}
np1 = {dependencies = {numpy="1.26.*"}}
np2 = {dependencies = {numpy="2.*"}}
pd21 = {dependencies = {pandas="2.1.*"}}
pd22 = {dependencies = {pandas="2.2.*"}}
pd_latest = {dependencies = {pandas="*"}}
[tool.pixi.environments]
default = {features = [], solve-group = "default"}
mne = {features = ["mne"], solve-group = "default"}
jupyter = {features = ["jupyter"], solve-group = "default"}
doc = {features = ["doc", "mne"], solve-group = "default"}
testpy311np1pd21 = ['py311', 'np1', 'pd21', 'mne']
testpy311np1pd22 = ['py311', 'np1', 'pd22', 'mne']
testpy311np1pd-latest = ['py311', 'np1', 'pd_latest', 'mne']
testpy311np2pd22 = ['py311', 'np2', 'pd22', 'mne']
testpy311np2pd-latest = ['py311', 'np2', 'pd_latest', 'mne']
testpy312np1pd21 = ['py312', 'np1', 'pd21', 'mne']
testpy312np1pd22 = ['py312', 'np1', 'pd22', 'mne']
testpy312np1pd-latest = ['py312', 'np1', 'pd_latest', 'mne']
testpy312np2pd22 = ['py312', 'np2', 'pd22', 'mne']
testpy312np2pd-latest = ['py312', 'np2', 'pd_latest', 'mne']
[tool.hatch.version]
source = "regex_commit"
path = "pyrasa/__version__.py"
tag_sign = false
[tool.ruff]
line-length = 120
exclude = ['simulations', 'examples', 'paper']
[tool.ruff.lint]
extend-select = [
'E',
'W',
'I',
'UP',
'C90',
'N',
'PTH',
'SIM',
'TCH',
'PL'
]
ignore = ['PLR0913']
[tool.ruff.format]
quote-style = 'single'
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--ignore=pyrasa/__version__.py"
[tool.mypy]
disable_error_code = "import-untyped"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "pyrasa.*"
disallow_untyped_defs = true