-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
117 lines (107 loc) · 3.26 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "wavelink-stubs"
description = "Type stubs for wavelink 2."
requires-python = ">=3.10"
version = "2.6.5"
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["python", "python-3", "wavelink", "type-stubs"]
authors = [{ name = "Sachaa-Thanasius", email = "[email protected]" }]
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Typing :: Typed",
]
dependencies = ["wavelink>=2.6.3,<2.6.6", "discord.py>=2.0.1", "typing_extensions>=4.8.0"]
[project.optional-dependencies]
dev = ["black", "ruff", "pre-commit"]
[project.urls]
Repository = "https://github.com/Sachaa-Thanasius/wavelink-stubs"
"Bug Tracker" = "https://github.com/Sachaa-Thanasius/wavelink-stubs/issues"
[tool.setuptools]
include-package-data = true
packages = ["wavelink-stubs", "wavelink-stubs.types", "wavelink-stubs.ext.spotify"]
[tool.black]
line-length = 120
target-version = ["py310", "py311"]
[tool.ruff]
line-length = 120
target-version = "py310"
select = [
"F",
"E",
"I",
"UP",
"YTT",
"ANN",
"S",
"BLE",
"B",
"A",
"COM",
"C4",
"DTZ",
"EM",
"ISC",
"G",
"INP",
"PIE",
"T20",
"Q003",
"RSE",
"RET",
"SIM",
"TID",
"PTH",
"ERA",
"PLC",
"PLE",
"PLR",
"PLW",
"TRY",
"RUF",
]
ignore = [
"G002", # Erroneous issue with %-logging when logging can be configured for % logging.
"S101", # Use of assert here is a known quantity. Blame typing memes.
"PLR2004", # Magic value comparison. May remove later.
"SIM105", # Suppressable exception. I'm not paying the overhead of contextlib.suppress for stylistic choices.
"C90", # McCabe complexity memes.
"PLR0913", # Some functions require more than 5 arguments.
"ANN101", # Python310 doesn't have Self in typing, so I'm not using it everywhere for self.
"ANN102", # Same deal as ANN101, but for cls.
"ANN401", # Need Any for args and kwargs in some places.
"A001", # Shadowing "id" and "type" in some places.
"A002", # Shadowing "id" and "type" in some places.
"A003", # Shadowing "id" and "type" in some places.
"PD", # Pandas isn't relevant for this project.
"NPY", # Numpy isn't relevant for this project.
]
unfixable = [
"ERA", # I don't want anything erroneously detected deleted by this.
"PLC0414", # This causes issues when declaring module imports in __init__ files. Disallow deletion.
]
[tool.ruff.per-file-ignores]
"__init__.pyi" = ["F403"]
[tool.ruff.isort]
extra-standard-library = ["typing_extensions"]
known-first-party = ["wavelink", "discord"]
combine-as-imports = true
[tool.pyright]
include = ["wavelink-stubs"]
venvPath = "."
venv = ".venv"
pythonVersion = "3.10"
typeCheckingMode = "strict"
reportPropertyTypeMismatch = "warning"
reportUnnecessaryTypeIgnoreComment = "warning"