forked from GraiaProject/Ariadne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
127 lines (113 loc) · 3.53 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
126
127
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
authors = [
{name = "BlueGlassBlock", email = "[email protected]"},
{name = "GreyElaina", email = "[email protected]"},
]
requires-python = ">=3.8,<4.0"
dependencies = [
"graia-broadcast~=0.18",
"aiohttp~=3.7",
"pydantic~=1.8",
"typing-extensions~=4.0",
"graia-amnesia~=0.5.2",
"creart-graia<1.0.0,>=0.1.4",
"launart<1.0.0,>=0.6.0",
]
name = "graia-ariadne"
description = "Another elegant Python QQ Bot framework for mirai and mirai-api-http v2."
readme = "README.md"
keywords = ["graia", "bot", "qq", "framework", "mirai", "ariadne"]
classifiers = ["Topic :: Communications :: Chat",
"Framework :: Robot Framework :: Library",
"Framework :: AsyncIO", "Typing :: Typed",
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["version"]
[project.urls]
repository = "https://github.com/GraiaProject/Ariadne"
documentation = "https://graia.readthedocs.io/projects/ariadne"
[project.entry-points."creart.creators"]
commander = "graia.ariadne.message.commander.creart:CommanderCreator"
commander_behaviour = "graia.ariadne.message.commander.creart:CommanderBehaviourCreator"
[project.optional-dependencies]
standard = ["richuru~=0.1", "graia-scheduler~=0.0", "graia-saya~=0.0"]
alconna = ["arclet-alconna-graia"]
graia = ["graia-scheduler~=0.0", "graia-saya~=0.0"]
fastapi = ["fastapi<1.0.0,>=0.74.1", "uvicorn[standard]<1.0.0,>=0.17.5"]
full = ["richuru~=0.1", "graia-scheduler~=0.0", "graia-saya~=0.0", "arclet-alconna-graia"]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"black>=22.1.0",
"isort>=5.9.3",
"pytest<8.0,>=7.1",
"coverage<7.0,>=6.2",
"flake8>=5.0.0",
"pytest-asyncio<1.0.0,>=0.18.3",
"devtools>=0.8",
"pre-commit<3.0,>=2.19",
"mkdocstrings[python]<1.0.0,>=0.19.0",
"mkdocs-material<9.0.0,>=8.2.13",
"mkdocs-gen-files<1.0.0,>=0.3.4",
"mkdocs-section-index<1.0.0,>=0.3.3",
"mkdocs-literate-nav<1.0.0,>=0.4.1",
"ipykernel<7.0.0,>=6.13.0",
"richuru<1.0.0,>=0.1.0",
"graia-scheduler<1.0,>=0.0",
"fastapi<1.0.0,>=0.74.1",
"uvicorn[standard]<1.0.0,>=0.17.5",
"viztracer<1.0.0,>=0.15.3",
"pydocstyle<7.0.0,>=6.1.1",
]
[tool.pdm.build]
includes = ["src/graia"]
[tool.pdm.version]
source = "file"
path = "src/graia/ariadne/__init__.py"
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.isort]
profile = "black"
[tool.black]
line-length = 110
target-version = ['py39']
[tool.coverage.run]
branch = true
omit = ["*/test/*"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# standard pragma
"pragma: no cover",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
"if (typing\\.)?TYPE_CHECKING( is True)?:",
"\\.\\.\\.",
"pass",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Don't complain overload method / functions
"@(typing\\.)?overload"
]
[tool.pyright]
ignore = [
"docs/**",
"**/site-packages/**/*.py",
"**/test*/**/*.py",
"**/adapter/**",
"**/temp/**/*.py"
]
[tool.pydocstyle]
match-dir = "(?!\\.)(?!test).*"