-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
81 lines (73 loc) · 2.03 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
[tool.poetry]
name = "hikari-bot"
version = "1.0.8"
description = "Nonebot2 HikariBot,支持战舰世界水表查询"
authors = ["benx1n <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/benx1n/HikariBot"
repository = "https://github.com/benx1n/HikariBot"
keywords = ["nonebot", "nonebot2", "qqbot", "wows", "wws","bot","stats"]
packages = [
{ include = "hikari_bot", from = "./src/plugins/"}
]
[tool.poetry.dependencies]
python = "^3.8.0"
nonebot2 = { version = "^2.1.0", extras = ["httpx", "websockets", "fastapi"] }
nonebot-adapter-onebot = "^2.1.0"
nonebot-plugin-apscheduler = "^0.2.0"
nonebot_plugin_guild_patch = "^0.2.1"
nonebot-plugin-reboot = "^0.1.3"
httpx = { version = ">=0.24.0", extras = ["http2"] }
Jinja2 = "^3.0.0"
beautifulsoup4 = "^4.11.1"
orjson = "^3.8.11"
hikari-core = "^1.0.0"
[tool.poetry.group.dev.dependencies]
nb-cli = "^0.6.0"
nonebot-plugin-gocqhttp = "^0.6.2"
black = {version = "^23.1a1", allow-prereleases = true}
isort = "^5.12.0"
[tool.nonebot]
#plugins = ["nonebot_plugin_apscheduler","nonebot_plugin_guild_patch"]
plugins = ["nonebot_plugin_apscheduler","nonebot_plugin_guild_patch","hikari_bot"]
#plugin_dirs = ["src/plugins"]
[[tool.poetry.source]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
# default = true
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.black]
line-length = 150
skip-string-normalization = true
[tool.ruff]
line-length = 150
respect-gitignore = true
ignore-init-module-imports = true
select = [
'F', # pyflakes
'E', # pycodestyle errors
'W', # pycodestyle warnings
'I', # isort
'C', # flake8-comprehensions
'B', # flake8-bugbear
'Q', # flake8-quotes
'PL', # pylint
'RUF', # Ruff-specific rules
]
ignore = [
'E501',
"RUF001",
"RUF002",
"RUF003",
"PLR2004",
"C901",
"PLR0912",
"PLR0911",
"PLW0603"
]
flake8-quotes = {inline-quotes = 'single', multiline-quotes = 'double'}