mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 19:36:43 +08:00
* 🐛 插入新的Schedulable时应传入use_batch参数 * ✨ 适配ceobecanteen平台 Co-authored-by: phidiaLam <2957035701@qq.com> * ✨ ✨ 明日方舟公告与官网采用截图分享 (#480) * ✨ 明日方舟公告与官网采用截图分享 * 💄 auto fix by pre-commit hooks * 🐛 修复缺少的导入,优化逻辑 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Azide <rukuy@qq.com> * 🐛 优化截图图片效果 * 🐛 修复错误将转发内图片视作头图的问题 * 🍱 使用正式 Bison Logo * 💄 auto fix by pre-commit hooks * 🐛 请求小刻API时不在headers里添加过多字段 * 🐛 get_comb_id方法删除无用的targets参数 * 💡 get_comb_id方法更新注释 * 🔥 移除发送部分的更改 * ✨ 在命名中明确表示cond_func意图 * ♻️ 拆分get_comb_id功能 * ♻️ 调整缓存逻辑 * ✨ 使用uri在theme中调用platform截图 * ♻️ 重构截图逻辑 * ✨ 添加模糊匹配提示 * ✨ 适配新版Site * 💄 auto fix by pre-commit hooks * 🐛 去掉不必要的排序 * 🐛 修正不应出现的驼峰变量名 * ♻️ 按review意见修改 * ♻️ 调整截图函数逻辑 * 🔊 调低日志等级 * ✏️ 修复一些拼写和格式 --------- Co-authored-by: phidiaLam <2957035701@qq.com> Co-authored-by: 洛梧藤 <67498817+phidiaLam@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
144 lines
3.5 KiB
TOML
144 lines
3.5 KiB
TOML
[tool.poetry]
|
|
name = "nonebot-bison"
|
|
version = "0.9.2"
|
|
description = "Subscribe message from social medias"
|
|
authors = ["felinae98 <felinae225@qq.com>"]
|
|
license = "MIT"
|
|
homepage = "https://github.com/felinae98/nonebot-bison"
|
|
keywords = ["nonebot", "nonebot2", "qqbot"]
|
|
readme = "README.md"
|
|
include = ["nonebot_bison/admin_page/dist/**/*"]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: Microsoft :: Windows",
|
|
"Operating System :: MacOS",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"License :: OSI Approved :: MIT License",
|
|
]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = ">=3.10,<4.0.0"
|
|
beautifulsoup4 = ">=4.12.3"
|
|
feedparser = "^6.0.11"
|
|
httpx = ">=0.27.0"
|
|
nonebot2 = { extras = ["fastapi"], version = "^2.3.2" }
|
|
nonebot-adapter-onebot = "^2.4.4"
|
|
nonebot-plugin-htmlrender = ">=0.3.3"
|
|
nonebot-plugin-datastore = ">=1.3.0,<2.0.0"
|
|
nonebot-plugin-apscheduler = ">=0.5.0"
|
|
nonebot-plugin-send-anything-anywhere = ">=0.6.1,<0.7.0"
|
|
pillow = ">=8.4.0,<11.0"
|
|
pyjwt = "^2.8.0"
|
|
python-socketio = "^5.11.3"
|
|
tinydb = "^4.8.0"
|
|
qrcode = "^7.4.2"
|
|
pydantic = ">=1.10.17,<3.0.0,!=2.5.0,!=2.5.1"
|
|
lxml = ">=5.2.2"
|
|
yarl = ">=1.9.4"
|
|
hishel = "^0.0.20"
|
|
expiringdictx = "^1.0.1"
|
|
rapidfuzz = "^3.9.3"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
black = ">=23.12.1,<25.0"
|
|
ipdb = "^0.13.13"
|
|
isort = "^5.13.2"
|
|
nonemoji = "^0.1.4"
|
|
nb-cli = "^1.4.1"
|
|
pre-commit = "^3.7.1"
|
|
ruff = ">=0.5.1"
|
|
|
|
[tool.poetry.group.test.dependencies]
|
|
flaky = "^3.8.1"
|
|
nonebug = "^0.3.7"
|
|
nonebug-saa = "^0.4.1"
|
|
pytest = ">=7.4.4,<9.0.0"
|
|
pytest-asyncio = ">=0.23.7,<0.24.0"
|
|
pytest-cov = ">=5.0.0,<6"
|
|
pytest-mock = "^3.14.0"
|
|
pytest-xdist = { extras = ["psutil"], version = "^3.6.1" }
|
|
respx = ">=0.21.1,<0.22"
|
|
|
|
[tool.poetry.group.docker]
|
|
optional = true
|
|
|
|
[tool.poetry.group.docker.dependencies]
|
|
nb-cli = "^1.4.1"
|
|
nonebot2 = { extras = ["fastapi", "aiohttp"], version = "^2.3.2" }
|
|
nonebot-adapter-red = "^0.9.0"
|
|
nonebot-adapter-qq = "^1.4.4"
|
|
poetry-core = "^1.9.0"
|
|
|
|
[tool.poetry.extras]
|
|
cli = ["anyio", "click", "typing-extensions"]
|
|
yaml = ["pyyaml"]
|
|
all = ["anyio", "click", "typing-extensions", "pyyaml"]
|
|
|
|
[tool.poetry.plugins.nb_scripts]
|
|
bison = "nonebot_bison.script.cli:main"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.9.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.pytest.ini_options]
|
|
markers = [
|
|
"compare: compare fetching result with rsshub",
|
|
"render: render img by chrome",
|
|
"external: use external resources",
|
|
]
|
|
asyncio_mode = "auto"
|
|
|
|
[tool.ruff]
|
|
select = ["E", "W", "F", "UP", "C", "T", "PYI", "PT", "Q"]
|
|
ignore = ["E402", "C901", "PT023"]
|
|
|
|
line-length = 120
|
|
target-version = "py310"
|
|
|
|
[tool.black]
|
|
line-length = 120
|
|
preview = true
|
|
target-version = ["py310", "py311", "py312"]
|
|
include = '\.pyi?$'
|
|
extend-exclude = '''
|
|
'''
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
line_length = 120
|
|
skip_gitignore = true
|
|
length_sort = true
|
|
force_sort_within_sections = true
|
|
src_paths = ["nonebot_bison", "tests"]
|
|
extra_standard_library = ["typing_extensions"]
|
|
|
|
[tool.nonebot]
|
|
adapters = [
|
|
{ name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" },
|
|
]
|
|
plugins = ["nonebot_bison"]
|
|
plugin_dirs = ["extra_plugins"]
|
|
builtin_plugins = ["echo"]
|
|
|
|
[tool.pyright]
|
|
reportShadowedImports = false
|
|
pythonVersion = "3.10"
|
|
pythonPlatform = "All"
|
|
executionEnvironments = [
|
|
{ root = "./tests", extraPaths = [
|
|
"./",
|
|
] },
|
|
{ root = "./" },
|
|
]
|
|
defineConstant = { PYDANTIC_V2 = true }
|
|
|
|
[[tool.poetry.source]]
|
|
name = "offical-source"
|
|
url = "https://pypi.org/simple/"
|
|
priority = "primary"
|