-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
95 lines (90 loc) · 2.08 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
[project]
name = "discord-pin-archiver"
version = "2024.03.15"
description = "A simple Discord bot for storing extra pins in a channel."
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [
{ name = "Sachaa-Thanasius", email = "111999343+Sachaa-Thanasius@users.noreply.github.com" },
]
dependencies = [
"apsw>=3.44.2.0",
"base2048>=0.1.3",
"discord.py>=2.3.2",
"platformdirs>=4.0.0",
"uvloop>=0.17.0;sys_platform=='linux'",
"xxhash>=3.4.1",
]
[project.urls]
Homepage = "https://github.com/SutaHelmIndustries/discord-pin-archiver"
"Bug Tracker" = "https://github.com/SutaHelmIndustries/discord-pin-archiver/issues"
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = [
"F",
"E",
"I",
"UP",
"YTT",
"ANN",
"S",
"BLE",
"B",
"A",
"COM",
"C4",
"DTZ",
"EM",
"ISC",
"G",
"INP",
"PIE",
"T20",
"PYI",
"RSE",
"RET",
"SIM",
"TID",
"PTH",
"ERA",
"PD",
"PL",
"TRY",
"NPY",
"RUF",
]
extend-ignore = [
"S101", # Use of assert here is a known quantity. Blame typing memes.
# "PLR2004", # Magic value comparison. May remove later.
"SIM105", # Suppressable exception. contextlib.suppress is a stylistic choice with overhead.
"C90", # McCabe complexity memes.
"ANN101", # Type of self is usually implicit.
"ANN102", # Type of cls is usually implicit.
"ANN204", # Special method return types are implicit and/or known by type-checkers.
"ANN401", # Need Any for args and kwargs.
"PLR", # Complexity things.
"A002", # Shadowing some built-in names.
# Recommended by Ruff when using Ruff format.
"E111",
"E114",
"E117",
"Q003",
"COM812",
"COM819",
# "E501",
"ISC001",
"ISC002",
]
unfixable = [
"ERA", # I don't want anything erroneously detected deleted by this.
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pyright]
include = ["pin_archiver.py"]
pythonVersion = "3.11"
typeCheckingMode = "strict"
reportUnnecessaryTypeIgnoreComment = "warning"