forked from ElainaCore/ElainaBot_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (66 loc) · 1.45 KB
/
Copy pathpyproject.toml
File metadata and controls
76 lines (66 loc) · 1.45 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
[project]
name = "elainabot"
version = "2.0.0"
description = "ElainaBot - QQ Official Bot Framework"
requires-python = ">=3.11"
readme = "README.md"
license = "MIT"
dependencies = [
"pyyaml>=6.0.3",
"aiohttp>=3.14.0",
"httpx>=0.28.1",
"websockets>=16.1",
"cryptography>=49.0.0",
"psutil>=7.2.2",
"python-dotenv>=1.2.2",
"pilk>=0.2.4",
"imageio-ffmpeg>=0.5.1",
]
[project.optional-dependencies]
voice = [
"soundfile>=0.12.1",
]
dev = [
"pytest>=9.1,<10.0",
"pytest-asyncio>=1.4,<2.0",
"pytest-cov>=7.0,<8.0",
"mypy>=2.2,<3.0",
"ruff>=0.15,<0.16",
"types-PyYAML",
]
[tool.setuptools]
packages = []
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["."]
markers = [
"unit: 单元测试 (快速, 无外部依赖)",
"integration: 集成测试 (需要配置/模块/网络等外部依赖)",
"slow: 耗时较长的测试",
"e2e: 端到端测试 (需要浏览器或完整环境)",
]
[tool.mypy]
python_version = "3.11"
strict = false
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
exclude = [
"modules/",
"plugins/",
"data/",
"tests/",
"web/dist/",
]
[tool.ruff]
target-version = "py311"
line-length=160
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "SIM"]
ignore = ["E501"]
[tool.ruff.format]
quote-style = "single"
[tool.coverage.run]
source = ["core", "web"]
omit = ["tests/*", "web/dist/*"]