-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
168 lines (161 loc) · 3.46 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[tool.poetry]
name = "nendo-plugin-voicegen-styletts2"
version = "0.1.1"
authors = [
"Aaron Abebe <aaron@okio.ai>",
]
description = "A text to speech plugin based on StyleTTS2."
license = "MIT"
readme = "README.md"
repository = "https://github.com/okio-ai/nendo_plugin_voicegen_styletts2"
homepage = "https://okio.ai"
keywords = [
"AI",
"ML",
"generative",
"music",
"okio",
"nendo",
"audio generation",
"TTS",
"StyleTTS2",
"text to speech",
"zero-shot voice cloning",
"voice cloning",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Multimedia :: Sound/Audio",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
[tool.poetry.dependencies]
python = "^3.8,<3.11"
nendo = "^0.2.0"
pydantic = "^2.4.2"
munch = "^4.0.0"
einops = "^0.7.0"
einops-exts = "^0.0.4"
librosa = "^0.10.0"
phonemizer = "^3.2.1"
nltk = "^3.8.1"
tortoise-tts = "^3.0.0"
[tool.ruff]
target-version = "py38"
# Same as Black.
line-length = 88
src = ["src"]
select = [
"A",
# "ANN", # flake8-annotations
"ARG",
"B",
"BLE",
"C",
"C4",
"COM",
"D",
"DTZ",
"E",
"ERA",
"EXE",
"F",
# "FBT", # flake8-boolean-trap
"G",
"ICN",
"INP",
"ISC",
"N",
"PGH",
"PIE",
"PL",
"PLC",
"PLE",
"PLR",
"PLW",
# "PT", # flake8-pytest-style
"PYI",
"Q",
"RUF",
"RSE",
"RET",
"S",
"SIM",
"SLF",
"T",
"T10",
"T20",
"TCH",
"TID",
# "TRY", # tryceratops
# "UP", # pyupgrade
"W",
"YTT",
]
extend-select = ["I"]
ignore = [
"A001", # Variable is shadowing a Python builtin
"ANN101", # Missing type annotation for self
"ANN102", # Missing type annotation for cls
"ANN204", # Missing return type annotation for special method __str__
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ARG005", # Unused lambda argument
"C901", # Too complex
"D105", # Missing docstring in magic method
"D417", # Missing argument description in the docstring
"E501", # Line too long
"ERA001", # Commented out code
"G004", # Logging statement uses f-string
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
"SLF001", # Private member accessed
"TRY003", # Avoid specifying long messages outside the exception class
]
fixable = [
"F401", # Remove unused imports.
"NPY001", # Fix numpy types, which are removed in 1.24.
]
unfixable = ["B"]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".pytest_cache",
".vscode",
"__pypackages__",
"_build",
"alembic",
"buck-out",
"node_modules",
"venv",
"site",
"docs",
]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.isort]
lines-after-imports = 2
known-first-party = ["nendo"]
[tool.ruff.pydocstyle]
convention = "google"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"