-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
46 lines (41 loc) · 1.23 KB
/
pyproject.toml
File metadata and controls
46 lines (41 loc) · 1.23 KB
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
[project]
name = "alicebot-example"
version = "0.1.0"
description = "AliceBot Example Bot"
authors = [{ name = "st1020", email = "stone_1020@qq.com" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.9"
dependencies = ["alicebot[all]>=0.10.0"]
[tool.uv]
dev-dependencies = ["ruff"]
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstyle
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"COM", # flake8-commas
"EM", # flake8-errmsg
"INP", # flake8-no-pep420
"E501", # Line too long, handled by black
"S101", # Use of assert detected
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"TRY003", # Avoid specifying long messages outside the exception class
]
allowed-confusables = [",", ":", "!"]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.pyright]
pythonVersion = "3.9"
pythonPlatform = "All"
typeCheckingMode = "strict"
reportCallInDefaultInitializer = true
reportImportCycles = true
reportPropertyTypeMismatch = true
reportShadowedImports = true
reportUninitializedInstanceVariable = true
reportUnnecessaryTypeIgnoreComment = true