forked from Liquid4All/liquid-audio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (121 loc) · 2.45 KB
/
pyproject.toml
File metadata and controls
134 lines (121 loc) · 2.45 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
[project]
name = "liquid-audio"
version = "1.0.0"
description = "Liquid Audio - Speech-to-Speech audio models"
readme = "README.md"
authors = [
{ name = "Liquid AI, Inc", email = "support@liquid.ai" }
]
license = "LicenseRef-LFM-Open-License-v1.0"
license-files = ["LICENSE"]
requires-python = ">=3.12"
dependencies = [
"accelerate>=1.10.1",
"einops>=0.8.1",
"librosa>=0.11.0",
"sentencepiece>=0.2.1",
"torch>=2.8.0",
"torchaudio>=2.8.0",
"transformers>=4.55.4",
]
keywords = ["Liquid AI", "LFM", "LFM2", "Audio", "Speech-to-Speech"]
[project.urls]
Homepage = "https://www.liquid.ai/"
Repository = "https://github.com/Liquid4All/liquid-audio/"
Issues = "https://github.com/Liquid4All/liquid-audio/issues"
[project.scripts]
liquid-audio-demo = "liquid_audio.demo.chat:main [demo]"
[project.optional-dependencies]
demo = [
"fastrtc[vad]>=0.0.30",
]
[build-system]
requires = ["uv_build>=0.8.13,<0.9.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"ipython>=9.4.0",
"mypy>=1.17.1",
"ruff>=0.12.10",
]
[tool.ruff]
line-length = 127 # The GitHub editor is 127 chars wide
extend-exclude = [
"src/liquid_audio/model/conformer",
"src/liquid_audio/moshi",
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# tryceratops
"TRY",
# perflint
"PERF",
# refurb
"FURB",
#ruff
"RUF",
]
ignore = [
# These conflict with ruff format
"W191",
"E111",
"E114",
"E117",
"E501",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
# Probably more readable without ternary operators
"SIM108",
# "Ambiguous variable name", probably too strict for kernel variables
"E741",
# Allow error message outside of class
"TRY003",
# Allow ABCs without abstract methods
"B024",
]
[tool.mypy]
mypy_path = "src"
packages = [
"liquid_audio",
]
exclude = [
"liquid_audio.model.conformer",
]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
strict_equality = true
extra_checks = true
check_untyped_defs = true
# TODO: check if needed
[[tool.mypy.overrides]]
module = [
"accelerate.*",
"torchaudio.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
'liquid_audio.moshi.*'
]
ignore_errors = true