-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
91 lines (84 loc) · 2.3 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
[project]
name = "SutaBlyDumb"
version = "0.0.1"
description = "A Discord bot purely for running Jishaku."
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
authors = [{ name = "Sachaa-Thanasius", email = "[email protected]" }]
[project.urls]
Homepage = "https://github.com/Sachaa-Thanasius/sutablydumb"
"Bug Tracker" = "https://github.com/Sachaa-Thanasius/sutablydumb/issues"
[tool.black]
line-length = 120
target-version = ["py311"]
[tool.ruff]
# Credit to @mikeshardmind for most of this setup.
include = ["main.py"]
line-length = 120
target-version = "py311"
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",
"PD",
"PLC",
"PLE",
"PLR",
"PLW",
"TRY",
"NPY",
"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.
"ANN204", # Special method return types.
"PD011", # Erroneous issue that triggers for any .values attribute access at all.
"S311", # No need for cryptographically secure random number generation in this use case.
"ANN101", # Type of self is implicit.
"ANN102", # Type of cls is implicit.
"ANN401", # Not sure how else to type *args and **kwargs when they could be anything.
"PLR0913", # Too many parameters in a function definition doesn't matter.
]
unfixable = [
"ERA", # I don't want anything erroneously detected deleted by this.
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F403", "PLC0414"] # Importing internal modules usually throws these.
[tool.ruff.isort]
lines-after-imports = 2
combine-as-imports = true
[tool.pyright]
# include = ["main.py"]
pythonVersion = "3.11"
typeCheckingMode = "strict"
# reportImportCycles = "warning"
reportPropertyTypeMismatch = "warning"
reportUnnecessaryTypeIgnoreComment = "warning"