Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (105 loc) · 3.06 KB
/
Copy pathpyproject.toml
File metadata and controls
120 lines (105 loc) · 3.06 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
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
[project]
name = "nonebot-plugin-mimo-console"
version = "0.1.13"
description = "A lightweight WebUI management console for NoneBot2"
readme = "README.md"
requires-python = ">=3.10"
license = "GPL-3.0-only"
license-files = ["LICENSE"]
authors = [
{ name = "MimoKit", email = "278909251+MimoKit@users.noreply.github.com" },
]
keywords = ["nonebot", "nonebot2", "webui", "dashboard", "console"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: AsyncIO",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
dependencies = [
"fastapi>=0.100.0",
"httpx>=0.27.0,<1.0.0",
"markdown-it-py>=4.0.0,<5.0.0",
"nh3>=0.2.18",
"nonebot-plugin-localstore>=0.7.4,<1.0.0",
"nonebot2>=2.5.0,<3.0.0",
"psutil>=5.9.0",
"python-multipart>=0.0.9",
"tomlkit>=0.12.0,<1.0.0",
]
[project.urls]
Homepage = "https://github.com/MimoKit/nonebot-plugin-mimo-console"
Issues = "https://github.com/MimoKit/nonebot-plugin-mimo-console/issues"
Repository = "https://github.com/MimoKit/nonebot-plugin-mimo-console.git"
[dependency-groups]
dev = [
"bump-my-version>=1.2.7",
"poethepoet>=0.42.1",
"ruamel-yaml>=0.18.0,<0.19.0",
"ruff>=0.15.2,<1.0.0",
{ include-group = "test" },
]
test = [
"pytest>=9.0.2,<10.0.0",
"pytest-cov>=7.0.0",
"pytest-xdist>=3.8.0,<4.0.0",
"uvicorn>=0.20.0",
]
[build-system]
requires = ["uv_build>=0.10.0,<0.12.0"]
build-backend = "uv_build"
[tool.bumpversion]
current_version = "0.1.13"
commit = true
message = "chore: 发布 v{new_version}"
tag = true
[[tool.bumpversion.files]]
filename = "uv.lock"
search = "name = \"nonebot-plugin-mimo-console\"\nversion = \"{current_version}\""
replace = "name = \"nonebot-plugin-mimo-console\"\nversion = \"{new_version}\""
[tool.coverage.run]
source = ["src/nonebot_plugin_mimo_console"]
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@overload",
"except ImportError:",
]
[tool.nonebot]
plugins = ["nonebot_plugin_mimo_console"]
[tool.poe.tasks]
test = "pytest --cov=src/nonebot_plugin_mimo_console --cov-report xml --junitxml=./junit.xml -n auto"
bump = "bump-my-version bump"
show-bump = "bump-my-version show-bump"
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "All"
typeCheckingMode = "standard"
defineConstant = { PYDANTIC_V2 = true }
executionEnvironments = [
{ root = "./agent/tests", extraPaths = ["./agent/src"] },
{ root = "./agent/src" },
{ root = "./tests", extraPaths = ["./src"] },
{ root = "./src" },
]
[tool.pytest.ini_options]
addopts = ["--import-mode=prepend", "--tb=short", "-ra"]
pythonpath = ["src"]
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = ["E402"]
[tool.ruff.lint.isort]
known-first-party = ["nonebot_plugin_mimo_console"]