-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
125 lines (109 loc) · 2.28 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
118
119
120
121
122
123
124
125
[project]
authors = [
{name = "Colsrch", email = "[email protected]"},
]
requires-python = ">=3.9,<4.0"
license = {text = "AGPL-3"}
dependencies = [
"graia-ariadne==0.9.10",
"graia-scheduler==0.0.8",
"graia-saya==0.0.16",
"richuru==0.1.1",
"arclet-alconna==1.3.2.1",
"arclet-alconna-graia==0.8.0",
"prompt-toolkit~=3.0.31",
"prettytable~=3.4.1",
"retrying~=1.3.3",
"peewee~=3.15.2",
"pillow~=9.2.0",
"jsonpath~=0.82",
"pip~=22.2.2",
"arclet-alconna-tools>=0.2.1",
"PyYaml>=6.0",
]
[project.optional-dependencies]
mysql = [
"pymysql~=1.0.2",
"cryptography>=38.0.1",
]
baidu = [
"baidu-aip>=4.16.8",
"chardet>=5.0.0",
]
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[project.urls]
repository = "https://github.com/MadokaProject/Madoka"
documentation = "https://madoka.colsrch.cn"
[tool]
[tool.pdm]
[tool.pdm.scripts]
start.cmd = "python main.py"
start.help = "启动 Madoka"
clean.cmd = "rm -rf **/__pycache__"
clean.help = "清理 __pycache__"
lint.cmd = "pre-commit run --all-files"
lint.help = "检查代码"
[tool.pdm.dev-dependencies]
dev = [
"pre-commit>=2.20.0",
"black>=23.9.1",
"ruff>=0.0.290",
]
[tool.isort]
profile = "black"
extend_skip_glob = [
"app/trigger/__init__.py",
]
[tool.black]
line-length = 120
target-version = ['py39']
[tool.pyright]
ignore = [
"docs/**",
"**/__pypackages__/**/*.py",
"**/test*/**/*.py",
"**/tmp/**",
"**/temp/**/*.py",
"app/util/network.py",
"app/trigger/__init__.py",
]
[tool.ruff]
line-length = 120
select = ["E", "F", "I", "UP", "C", "T", "Q"]
ignore = ["C901", "E501"]
# Exclude a variety of commonly ignored directories.
extend-exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"docs/**",
"**/test*/**/*.py",
"**/tmp/**",
"**/temp/**/*.py",
"app/util/network.py",
"app/trigger/__init__.py"
]
per-file-ignores = {}
target-version = "py39"
[tool.ruff.isort]
extra-standard-library = ["typing_extensions"]
[tool.ruff.pyupgrade]
keep-runtime-typing = true