-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
117 lines (109 loc) · 2.02 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
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
[project]
name = "CanrotBot"
version = "9.1.0"
authors = [
{ name = "wangyw15", email = "[email protected]" }
]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.12"
dependencies = [
"nonebot2[fastapi]",
"nonebot-plugin-apscheduler",
"nonebot-adapter-onebot",
"nonebot-adapter-kaiheila",
"nonebot-adapter-mirai2",
"nonebot-adapter-qq",
"nonebot-adapter-console",
"pydantic>=2",
"beautifulsoup4",
"httpx",
"pillow",
"playwright",
"tencentcloud-sdk-python",
"sqlalchemy>=2",
"nonebot-plugin-alconna",
"cryptography",
"anyio",
"nonechat",
"hishel",
"ollama",
"openai",
"fastapi>=0.115.3",
"jinja2>=3.1.4",
"feedparser>=6.0.11",
]
[project.scripts]
canrotbot = "canrotbot:run"
[project.optional-dependencies]
mariadb = ["mariadb>=1.1.10"]
[dependency-groups]
dev = [
"nonebug>=0.4.1",
"pytest-asyncio>=0.24.0",
"pytest-mock>=3.14.0",
"pytest>=8.3.3",
]
lint = [
"ruff",
]
build = [
"nuitka"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
minversion = "6.0"
pythonpath = [
"src",
"src/canrotbot",
]
testpaths = [
"tests",
]
# pytest-asyncio
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
[tool.ruff.lint]
select = ["I", "F"]
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"