-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (168 loc) · 4.12 KB
/
pyproject.toml
File metadata and controls
176 lines (168 loc) · 4.12 KB
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "torch-ecg"
dynamic = ["version"]
description = "A Deep Learning Framework for ECG Processing Tasks Based on PyTorch"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.9"
authors = [
{ name = "DeepPSP", email = "wenh06@gmail.com" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"bib-lookup",
"biosppy",
"boto3",
"Cython",
"deprecate-kwargs",
"deprecated",
"easydict",
"einops",
"matplotlib",
"numpy",
"pandas < 3.0.0",
"pyarrow",
"pyEDFlib",
"PyWavelets",
"requests",
"safetensors",
"scikit-learn",
"scipy",
"soundfile",
"tensorboardX",
"torch",
"torch-optimizer",
"torchsummary",
"tqdm",
"typing-extensions",
"wfdb",
"xmltodict",
"PeakUtils",
]
[project.optional-dependencies]
dev = [
"black",
"flake8",
"gdown",
"librosa",
"nbsphinx",
"numpydoc",
"openpyxl",
"packaging",
"pcg-springer-features",
"pre-commit",
"pydata-sphinx-theme",
"pytest",
"pytest-cov",
"pytest-xdist",
"sphinx-autobuild",
"sphinx-book-theme",
"sphinx-copybutton",
"sphinx-design",
"sphinx-emoji-favicon",
"sphinx-markdown-tables",
"sphinx-multiversion",
"sphinx-rtd-theme",
"sphinx-theme",
"sphinx",
"sphinxcontrib-bibtex",
"sphinxcontrib-napoleon",
"sphinxcontrib-tikz",
"tensorboard",
"torch_audiomentations",
"torchaudio",
"torchcodec",
]
docs = [
"nbsphinx",
"numpydoc",
"pydata-sphinx-theme",
"sphinx-autobuild",
"sphinx-book-theme",
"sphinx-copybutton",
"sphinx-design",
"sphinx-emoji-favicon",
"sphinx-markdown-tables",
"sphinx-multiversion",
"sphinx-rtd-theme",
"sphinx-theme",
"sphinx",
"sphinxcontrib-bibtex",
"sphinxcontrib-napoleon",
"sphinxcontrib-tikz",
]
test = [
"black",
"flake8",
"gdown",
"librosa",
"openpyxl",
"packaging",
"pcg-springer-features",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-xdist",
"tensorboard",
"torch_audiomentations",
"torchaudio",
"torchcodec",
]
[project.urls]
Homepage = "https://github.com/DeepPSP/torch_ecg"
[tool.hatch.version]
path = "torch_ecg/version.py"
[tool.hatch.build.targets.sdist]
include = [
"/torch_ecg",
]
# configuration for pytest and coverage
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-vv -s --cov=torch_ecg --ignore=test/test_pipelines"
testpaths = ["test"]
[tool.coverage.run]
source = ["torch_ecg"]
patch = ["subprocess"]
omit = [
"torch_ecg/databases/nsrr_databases/shhs.py",
]
[tool.coverage.report]
omit = [
# "torch_ecg/databases/nsrr_databases/shhs.py",
# NSRR databases are ignored temporarily, since data access is denied by the US government
"torch_ecg/databases/nsrr_databases/*",
# temporarily ignore torch_ecg/components/nas.py since it's not implemented completely
"torch_ecg/components/nas.py",
# temporarily ignore torch_ecg/models/grad_cam.py since it's not implemented completely
"torch_ecg/models/grad_cam.py",
# temporarily ignore torch_ecg/ssl since it's not implemented
"torch_ecg/ssl/*",
# temporarily ignore models that are not implemented completely
"torch_ecg/models/cnn/darknet.py",
"torch_ecg/models/cnn/efficientnet.py",
"torch_ecg/models/cnn/ho_resnet.py",
]
exclude_also = [
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# base class of the NSRR databases are also ignored temporarily
"^class NSRRDataBase\\(.*\\):",
]
# show_missing = true
# skip_covered = true