-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
214 lines (181 loc) · 5.15 KB
/
pyproject.toml
File metadata and controls
214 lines (181 loc) · 5.15 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pypllr-gui"
version = "0.1.0"
description = "AI/ML Research -> Clinical Applications (Speech Pathology)"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "Beckett Frey", email = "code@beckettfrey.com"}
]
dependencies = [
"pyqt6>=6.9.1",
"torch==2.8.0",
"torchaudio==2.8.0",
"pypllrcomputer @ git+https://github.com/BrainBehaviorAnalyticsLab/PyPLLRComputer.git@48a0c934e75f73235ba5a002538b8588fd6697e7",
"wav2textgrid @ git+https://github.com/pkadambi/Wav2TextGrid.git@3862476185a7558d481f1ae1c9cbca2e48c825a0",
"datasets>=4.3.0",
"accelerate>=1.11.0",
"keyring>=25.6.0",
"pre-commit>=4.3.0",
"pytest>=8.4.2",
"pydantic>=2.12.3",
"numba>=0.59.0",
"pyyaml>=6.0.0",
"rich>=14.2.0",
"faster-whisper>=1.1.0",
"alignment-comparison-plots==0.1.1",
]
[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"pytest>=8.4.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"pytest-qt>=4.4.0",
"pre-commit>=4.3.0",
"ruff>=0.14.0",
"mypy>=1.18.2",
"types-PyYAML>=6.0.0",
"genbadge[coverage]>=1.1.3",
"invoke>=2.2.0",
"shred-guard>=1.1.0",
]
docs = [
"pdoc>=16.0.0",
]
installation = [
"pyinstaller>=5.10.1",
]
[project.urls]
Homepage = "https://github.com/BrainBehaviorAnalyticsLab/voxkit-desktop"
Repository = "https://github.com/BrainBehaviorAnalyticsLab/voxkit-desktop"
Issues = "https://github.com/BrainBehaviorAnalyticsLab/voxkit-desktop/issues"
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src"]
exclude = [
".git",
".mypy_cache",
".ruff_cache",
".venv",
"venv",
"build",
"dist",
"examples",
"__pycache__",
"main.py",
"build.py",
"example_startup_script.py",
"test_imports.py",
"coverage.svg"
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort (import sorting)
"S", # bandit (security)
]
ignore = [
"S101", # Use of assert (OK in tests)
"S301", # Pickle usage (needed for ML)
]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101"]
"scripts/**/*.py" = ["S101","S603"] # Allow subprocess in scripts
"src/voxkit/services/**/*.py" = ["S603", "S108"] # Allow subprocess and temp dirs in services
"hooks/**/*.py" = ["E402"] # Allow imports after code in hooks
"src/voxkit/gui/pages/pipeline/evaluation_stacker.py" = ["S603", "S607"] # Allow subprocess in eval
[tool.ruff.lint.isort]
known-first-party = ["Wav2TextGrid"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
check_untyped_defs = false
warn_return_any = true
warn_unused_configs = true
exclude = [
"main.py",
"build.py",
"example_startup_script.py",
"test_imports.py",
"tests/"
]
[tool.coverage.run]
# Omit modules that are difficult, impractical, or low-value to test
omit = [
# Engine implementations - OS/hardware-dependent external tool integrations
"src/voxkit/engines/*_engine.py",
# GUI layer - PyQt6 UI components are difficult to test reliably
# Focus testing on business logic, not UI rendering
# Use **/*.py to match all .py files recursively in subdirectories
"src/voxkit/gui/components/**/*.py",
"src/voxkit/gui/frameworks/**/*.py",
"src/voxkit/gui/pages/**/*.py",
"src/voxkit/gui/styles/**/*.py",
"src/voxkit/gui/workers/**/*.py",
"src/voxkit/gui/__init__.py",
"src/voxkit/gui/utils.py",
# External service integrations - subprocess/system calls
"src/voxkit/services/**/*.py",
# Startup routines that download external models (HuggingFace, MFA)
"src/voxkit/config.py",
"src/voxkit/config/startup_config.py",
# Build and deployment scripts
"build.py",
"main.py",
"_frozen_patch.py",
# Test files themselves
"tests/**/*.py",
# Package initialization files (typically just imports)
"src/voxkit/__init__.py",
]
[tool.coverage.report]
# Exclude common patterns that don't need coverage
exclude_lines = [
# Standard pragmas
"pragma: no cover",
# Abstract methods and NotImplementedError
"raise NotImplementedError",
"raise NotImplemented",
"@abstractmethod",
"@abc.abstractmethod",
# Type checking imports
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
# Defensive programming
"assert False",
"raise AssertionError",
# Debugging/development code
"if __name__ == \"__main__\":",
"if 0:",
"if False:",
# Pass statements in abstract classes/protocols
"pass",
# Ellipsis in stub files or protocols
'^\\.\\.\\.\\s*$',
]
# Report settings for clearer output
precision = 2
skip_empty = true
skip_covered = false
# Show missing line numbers in terminal output
show_missing = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.shredguard]
[[tool.shredguard.patterns]]
regex = "\\b\\d{10}\\b|\\b\\d{3}[-.\\s]?\\d{3}[-.\\s]?\\d{4}\\b"
description = "Phone numbers (10 digits)"
[[tool.shredguard.patterns]]
regex = "\\d{3,5}_[MF]_+"
description = "Patient ID"