-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (130 loc) · 3.98 KB
/
pyproject.toml
File metadata and controls
145 lines (130 loc) · 3.98 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
[project]
name = "audio-refinery"
version = "0.2.2"
description = "GPU-accelerated audio processing pipeline: vocal separation, speaker diarization, transcription, and sentiment analysis."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11,<3.12"
authors = [
{ name = "Chris Colinsky", email = "chris@lunarcommand.xyz" }
]
keywords = [
"audio", "speech", "transcription", "diarization", "sentiment",
"demucs", "whisper", "pyannote", "gpu", "pipeline", "cli",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"torch==2.1.2",
"torchaudio==2.1.2",
"demucs==4.0.1",
"soundfile==0.12.1",
"pyannote.audio>=3.1.1",
"python-dotenv",
"pydantic",
"numpy<2.0.0",
"pandas",
"ffmpeg-python",
"click>=8.1",
"rich>=13.0",
"transformers>=4.30.0,<4.40.0",
"fastapi>=0.110",
"uvicorn[standard]>=0.29",
"httpx>=0.27",
"structlog>=24.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.9.0",
"mypy>=1.8.0",
"pytest>=8.0.0",
"pytest-mock>=3.12.0",
"pytest-cov>=4.1.0",
"pre-commit>=3.6.0",
]
[project.scripts]
audio-refinery = "src.cli:cli"
audio-refinery-service = "src.service.app:run"
[project.urls]
Homepage = "https://github.com/LunarCommand/audio-refinery"
Repository = "https://github.com/LunarCommand/audio-refinery"
Issues = "https://github.com/LunarCommand/audio-refinery/issues"
Changelog = "https://github.com/LunarCommand/audio-refinery/blob/main/CHANGELOG.md"
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["src"]
# whisperx conflicts with torchaudio==2.1.2 at the resolver level and cannot
# be listed as an optional dependency — uv would fail to generate a lock file.
# Install it separately after uv sync: make install-whisperx
# This stanza tells uv to inject setuptools into whisperx's build environment.
[tool.uv.extra-build-dependencies]
whisperx = ["setuptools"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"integration: marks tests that require real Demucs + GPU (deselect with '-m \"not integration\"')",
]
addopts = ["-v"]
filterwarnings = [
# Third-party library warnings — not actionable from this project
"ignore:The get_cmap function was deprecated:DeprecationWarning",
"ignore:builtin type.*no __module__:DeprecationWarning",
"ignore:torchaudio._backend.set_audio_backend:UserWarning",
]
[tool.coverage.run]
source = ["src"]
omit = ["tests/*", ".venv/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle errors/warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "SIM115", "SIM117"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = false
warn_no_return = false
ignore_missing_imports = true