-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (92 loc) · 2.76 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (92 loc) · 2.76 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
[project]
name = "nonebot-plugin-mcqq"
version = "2.9.1"
description = "基于NoneBot的QQ群聊与Minecraft Server消息互通插件"
authors = [{ name = "17TheWord", email = "17theword@gmail.com" }]
requires-python = ">=3.10,<4"
readme = "README.md"
license = "MIT"
dependencies = [
"nb-cli>=1.7.4",
"nonebot-adapter-minecraft>=1.8.0",
"nonebot-adapter-onebot>=2.4.6",
"nonebot-adapter-qq>=1.7.1",
"nonebot2[fastapi,httpx,websockets]>=2.4.3",
]
[project.optional-dependencies]
pil = ["pillow>=11.3.0"]
[dependency-groups]
dev = ["nb-cli>=1.4.2", "pre-commit>=4.2.0,<5"]
lint = ["ruff>=0.12.4,<0.13"]
test = [
"nonebug>=0.4.3",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
]
[tool.nonebot]
plugin_dirs = []
builtin_plugins = []
[tool.nonebot.plugins]
"@local" = []
nonebot-plugin-mcqq = ["nonebot_plugin_mcqq"]
[tool.nonebot.adapters]
"@local" = []
nonebot-adapter-minecraft = [{name = "Minecraft", module_name = "nonebot.adapters.minecraft"}]
nonebot-adapter-qq = [{name = "QQ", module_name = "nonebot.adapters.qq"}]
nonebot-adapter-onebot = [{name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11"}]
[tool.uv]
default-groups = ["dev", "test", "lint"]
[tool.hatch.build.targets.sdist]
include = ["nonebot_plugin_mcqq"]
[tool.hatch.build.targets.wheel]
include = ["nonebot_plugin_mcqq"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
addopts = "--cov=nonebot_plugin_mcqq --cov-report term-missing"
filterwarnings = ["ignore:.*overrides.*:DeprecationWarning:nonebot.typing"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"F", # Pyflakes
"W", # pycodestyle warnings
"E", # pycodestyle errors
"I", # isort
"UP", # pyupgrade
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RUF", # Ruff-specific rules
]
ignore = [
"E402",
"E501", # module-import-not-at-top-of-file
"UP037", # quoted-annotation
"RUF001", # ambiguous-unicode-character-string
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.isort]
force-sort-within-sections = true
extra-standard-library = ["typing_extensions"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.data.packages]
my_package = { path = "nonebot_plugin_mcqq" }