@@ -6,25 +6,23 @@ build-backend = "setuptools.build_meta"
66name = " wavelink"
77version = " 3.5.1"
88
9- authors = [
10- { name =" PythonistaGuild, EvieePy" , email =" evieepy@gmail.com" },
11- ]
9+ authors = [{ name = " PythonistaGuild, EvieePy" , email = " evieepy@gmail.com" }]
1210dynamic = [" dependencies" ]
1311description = " A robust and powerful, fully asynchronous Lavalink wrapper built for discord.py in Python."
1412readme = " README.md"
1513requires-python = " >=3.10"
1614classifiers = [
17- " License :: OSI Approved :: MIT License" ,
18- " Intended Audience :: Developers" ,
19- " Natural Language :: English" ,
20- " Operating System :: OS Independent" ,
21- " Programming Language :: Python :: 3.10" ,
22- " Programming Language :: Python :: 3.11" ,
23- " Programming Language :: Python :: 3.12" ,
24- " Topic :: Internet" ,
25- " Topic :: Software Development :: Libraries" ,
26- " Topic :: Software Development :: Libraries :: Python Modules" ,
27- " Topic :: Utilities" ,
15+ " License :: OSI Approved :: MIT License" ,
16+ " Intended Audience :: Developers" ,
17+ " Natural Language :: English" ,
18+ " Operating System :: OS Independent" ,
19+ " Programming Language :: Python :: 3.10" ,
20+ " Programming Language :: Python :: 3.11" ,
21+ " Programming Language :: Python :: 3.12" ,
22+ " Topic :: Internet" ,
23+ " Topic :: Software Development :: Libraries" ,
24+ " Topic :: Software Development :: Libraries :: Python Modules" ,
25+ " Topic :: Utilities" ,
2826]
2927
3028[project .urls ]
@@ -34,51 +32,43 @@ classifiers = [
3432packages = [" wavelink" , " wavelink.types" ]
3533
3634[tool .setuptools .dynamic ]
37- dependencies = {file = [" requirements.txt" ]}
35+ dependencies = { file = [" requirements.txt" ] }
3836
3937[tool .setuptools .package-data ]
4038wavelink = [" py.typed" ]
4139
40+ [dependency-groups ]
41+ dev = [" ruff>=0.15.10" ]
42+
4243[tool .ruff ]
4344line-length = 120
4445indent-width = 4
4546exclude = [" venv" , " docs/" ]
4647
4748[tool .ruff .lint ]
4849select = [
50+ " ANN" ,
4951 " C4" ,
5052 " E" ,
5153 " F" ,
5254 " G" ,
5355 " I" ,
56+ " PERF" ,
5457 " PTH" ,
5558 " RUF" ,
5659 " SIM" ,
57- " TCH " ,
60+ " TC " ,
5861 " UP" ,
5962 " W" ,
60- " PERF" ,
61- " ANN" ,
6263]
6364ignore = [
64- " F402" ,
65- " F403" ,
66- " F405" ,
67- " PERF203" ,
68- " RUF001" ,
69- " RUF009" ,
70- " SIM105" ,
71- " UP034" ,
72- " UP038" ,
73- " ANN101" ,
74- " ANN102" ,
75- " ANN401" ,
76- " UP031" ,
77- " PTH123" ,
78- " E203" ,
79- " E501" ,
80- " RUF006" ,
81- " SIM910" ,
65+ " ANN401" , # we allow `Any` type
66+ " E203" , # we allow whitespace separation after commas, etc
67+ " F403" , # allowing manual dict comprehension
68+ " F405" , # star imports are used commonly here
69+ " PERF203" , # allowing try-except blocks in loops is allowed here, performance hit is negligible
70+ " RUF006" , # due to the nature of the library we allow dangling tasks to be cleaned up eagerly
71+ " SIM105" , # contextlib.suppress is a performance hit and try-except is preferred.
8272]
8373
8474[tool .ruff .lint .isort ]
@@ -106,4 +96,3 @@ typeCheckingMode = "strict"
10696reportImportCycles = false
10797reportPrivateUsage = false
10898pythonVersion = " 3.10"
109-
0 commit comments