forked from music-assistant/server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
226 lines (205 loc) · 4.64 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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
[project]
name = "music_assistant"
# The version is set by GH action on release
authors = [
{name = "The Music Assistant Authors", email = "[email protected]"},
]
classifiers = [
"Environment :: Console",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"aiodns>=3.0.0",
"Brotli>=1.0.9",
"aiohttp==3.11.6",
"aiofiles==24.1.0",
"aiorun==2024.8.1",
"aiosqlite==0.20.0",
"certifi==2024.8.30",
"colorlog==6.9.0",
"cryptography==43.0.3",
"eyeD3==0.9.7",
"faust-cchardet>=2.1.18",
"ifaddr==0.2.0",
"mashumaro==3.14",
"memory-tempfile==2.2.3",
"music-assistant-frontend==v2.9.16",
"music-assistant-models==1.1.3",
"orjson==3.10.7",
"pillow==11.0.0",
"python-slugify==8.0.4",
"unidecode==1.3.8",
"xmltodict==0.14.2",
"shortuuid==1.0.13",
"zeroconf==0.136.2",
]
description = "Music Assistant"
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.11"
version = "0.0.0"
[project.optional-dependencies]
test = [
"codespell==2.3.0",
"isort==5.13.2",
"mypy==1.13.0",
"pre-commit==4.0.1",
"pre-commit-hooks==5.0.0",
"pytest==8.3.3",
"pytest-aiohttp==1.0.5",
"pytest-cov==5.0.0",
"syrupy==4.7.2",
"tomli==2.1.0",
"ruff==0.7.4",
]
[project.scripts]
mass = "music_assistant.__main__:main"
[tool.codespell]
ignore-words-list = "provid,hass,followings,childs"
skip = "*.js"
[tool.setuptools]
include-package-data = true
packages = ["music_assistant"]
platforms = ["any"]
zip-safe = false
[tool.setuptools.package-data]
music_assistant = ["py.typed"]
[tool.ruff]
fix = true
show-fixes = true
line-length = 100
target-version = "py311"
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "pep257"
[tool.ruff.lint.pylint]
max-args = 10
max-branches = 25
max-returns = 15
max-statements = 50
[tool.mypy]
platform = "linux"
python_version = "3.11"
# show error messages from unrelated files
follow_imports = "normal"
# suppress errors about unsatisfied imports
ignore_missing_imports = true
# be strict
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.ruff.format]
# Force Linux/MacOS line endings
line-ending = "lf"
[tool.pytest.ini_options]
addopts = "--cov music_assistant"
asyncio_mode = "auto"
[tool.ruff.lint]
ignore = [
"ANN002", # Just annoying, not really useful
"ANN003", # Just annoying, not really useful
"ANN101", # Self... explanatory
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"D417", # False positives in some occasions
"EM101", # Just annoying, not really useful
"EM102", # Just annoying, not really useful
"FIX002", # Just annoying, not really useful
"PLR2004", # Just annoying, not really useful
"PD011", # Just annoying, not really useful
"S101", # assert is often used to satisfy type checking
"TCH001", # Just annoying, not really useful
"TCH003", # Just annoying, not really useful
"TD002", # Just annoying, not really useful
"TD003", # Just annoying, not really useful
"TD004", # Just annoying, not really useful
"TRY003", # Just annoying, not really useful
"TRY400", # Just annoying, not really useful
"COM812", # Conflicts with the Ruff formatter
"ISC001", # TEMPORARY DISABLED rules # The below rules must be enabled later one-by-one !
"BLE001",
"FBT001",
"FBT002",
"FBT003",
"ANN001",
"ANN102",
"ANN201",
"ANN202",
"TRY002",
"PTH103",
"PTH100",
"PTH110",
"PTH111",
"PTH112",
"PTH113",
"PTH118",
"PTH120",
"PTH123",
"PYI034",
"PYI036",
"G004",
"PGH003",
"DTZ005",
"S104",
"S105",
"S106",
"SLF001",
"SIM113",
"SIM102",
"PERF401",
"PERF402",
"ARG002",
"S311",
"TRY301",
"RET505",
"PLR0912",
"B904",
"TRY401",
"S324",
"DTZ006",
"ERA001",
"PTH206",
"C901",
"PTH119",
"PTH116",
"DTZ003",
"RUF012",
"S304",
"DTZ003",
"RET507",
"RUF006",
"TRY300",
"PTH107",
"S608",
"N818",
"S307",
"B007",
"RUF009",
"ANN204",
"PTH202",
"ASYNC109",
"ASYNC110",
]
select = ["ALL"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.isort]
known-first-party = ["music_assistant"]
[tool.ruff.lint.mccabe]
max-complexity = 25