-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
209 lines (199 loc) · 5.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
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
[tool.poetry]
name = "nendo"
version = "0.2.5"
authors = [
"Okio Team <[email protected]>",
]
description = "The Nendo AI Audio Tool Suite"
license = "MIT"
readme = "README.md"
repository = "https://github.com/okio-ai/nendo"
homepage = "https://okio.ai"
keywords = [
"AI",
"Machine Learning",
"Audio",
"Generative",
"Music",
"Audio Production",
"Audio Generation",
"Audio Analysis",
]
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"
pydantic = { version = "^2.0.0, <2.5.0" }
pydantic-settings = "^2.1.0"
duckdb-engine = "^0.9.0"
librosa = "^0.10.0"
numpy = "^1.20"
pytz = "2023.3.post1"
sqlalchemy = "^2.0.25"
sqlalchemy-json = "^0.7.0"
sounddevice = "^0.4.6"
soundfile = "^0.12"
tinytag = "^1.8"
# linting and tests
alembic = { version = "^1.12.0", optional = true }
black = { version = "^23.1.0", optional = true }
coverage = { version = "^7.3.2", optional = true}
freezegun = { version = "^1.2.2", optional = true }
pytest = { version = "^7.3.0", optional = true }
ruff = { version = "^0.2.2", optional = true }
setuptools = { version = "^67.6.1", optional = true }
rich = { version = "^12.5.1", optional = true }
# docs
materialx = { version = "^1.38.8", optional = true }
markdown-callouts = { version = "^0.3.0", optional = true }
markdown-exec = { version = "^1.7.0", optional = true }
mkdocs = { version ="^1.5.3", optional = true }
mkdocs-autorefs = { version ="^0.5.0", optional = true }
mkdocs-coverage = { version = "^1.0.0", optional = true }
mkdocs-gen-files = { version = "^0.5.0", optional = true }
mkdocs-git-committers-plugin-2 = { version = "^2.2.0", optional = true }
mkdocs-material = { version ="^9.4.7", optional = true }
mkdocs-minify-plugin = { version = "^0.7.1", optional = true }
mkdocs-monorepo-plugin = { version = "^1.1.0", optional = true }
mkdocs-swagger-ui-tag = { version = "^0.6.8", optional = true }
mkdocs-literate-nav = { version = "^0.6.1", optional = true }
mkdocs-pymdownx-material-extras = { version = "^2.5.5", optional = true }
mkdocs-redirects = { version = "^1.2.1", optional = true }
# mkdocstrings-python = { git = "ssh://[email protected]/okio-ai/mkdocstrings-python.git", optional = true }
mkdocstrings-python = { version = "^1.7.3", optional = true }
toml = { version = "^0.10.2", optional = true }
git_changelog = { version = "^2.3.2", optional = true }
GitPython = { version = "^3.1.40", optional = true }
[tool.poetry.extras]
dev = [
"toml", "alembic", "black", "freezegun", "pytest", "ruff",
"setuptools", "coverage", "git_changelog"
]
doc = [
"mkdocs", "mkdocstrings", "mkdocs-coverage", "mkdocs-minify-plugin",
"mkdocs-git-committers-plugin-2", "markdown-exec", "mkdocs-literate-nav",
"materialx", "markdown-callouts", "mkdocs-autorefs", "mkdocs-redirects",
"mkdocs-pymdownx-material-extras", "mkdocs-gen-files", "mkdocstrings-python",
"mkdocs-material", "mkdocs-monorepo-plugin", "GitPython", "mkdocs-render-swagger-plugin"
]
[tool.ruff]
target-version = "py38"
# Same as Black.
line-length = 88
src = ["src"]
[lint]
select = [
"A",
# "ANN", # flake8-annotations
"ARG",
"B",
"BLE",
"C",
"C4",
"COM",
"D",
"DTZ",
"E",
"ERA",
"EXE",
"F",
# "FBT", # flake8-boolean-trap
"G",
"I", # Isort
"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",
]
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 = ["ALL"]
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]+?))$"
[lint.mccabe]
max-complexity = 10
[lint.isort]
profile = "black"
known-first-party = ["nendo"]
[lint.pydocstyle]
convention = "google"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"