MaiBot-Napcat-Adapter/pyproject.toml

59 lines
1.0 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

[project]
name = "MaiBotNapcatAdapter"
version = "0.5.5"
description = "A MaiBot adapter for Napcat"
requires-python = ">=3.10"
dependencies = [
"aiohttp>=3.13.2",
"asyncio>=4.0.0",
"loguru>=0.7.3",
# maim-message - 使用本地开发版本通过uv pip install -e手动安装
"pillow>=12.0.0",
"requests>=2.32.5",
"rich>=14.2.0",
"sqlmodel>=0.0.27",
"tomlkit>=0.13.3",
"websockets>=15.0.1",
"watchdog>=3.0.0",
]
[tool.ruff]
include = ["*.py"]
# 行长度设置
line-length = 120
[tool.ruff.lint]
fixable = ["ALL"]
unfixable = []
# 启用的规则
select = [
"E", # pycodestyle 错误
"F", # pyflakes
"B", # flake8-bugbear
]
ignore = ["E711","E501"]
[tool.ruff.format]
docstring-code-format = true
indent-style = "space"
# 使用双引号表示字符串
quote-style = "double"
# 尊重魔法尾随逗号
# 例如:
# items = [
# "apple",
# "banana",
# "cherry",
# ]
skip-magic-trailing-comma = false
# 自动检测合适的换行符
line-ending = "auto"