forked from Windsland52/ArknightsAutoOperator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (58 loc) · 1.84 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (58 loc) · 1.84 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
[project]
name = "arknights-auto-operator"
version = "0.1.0"
description = "明日方舟自动凹图 — MaaFramework 方案二 (pipeline + 进程内 custom action) + 费用条计时/悬浮窗/打轴对轴"
requires-python = ">=3.13,<3.14"
dependencies = [
"maafw>=5.11,<6",
"numpy>=2.0",
"PySide6>=6.7",
"websockets>=13.0",
"pillow>=10.0",
"json5>=0.14.0",
"loguru>=0.7",
]
[dependency-groups]
dev = [
"pyright>=1.1.400",
"pytest>=8.0",
"pyinstaller>=6.0",
"ruff>=0.11.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["custom", "aao"]
[tool.ruff]
target-version = "py313"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
[tool.pyright]
include = ["custom", "aao", "tests", "tools"]
extraPaths = ["custom", "aao", "tests", "tests/replay"]
pythonVersion = "3.13"
typeCheckingMode = "strict"
# MaaFramework 的 Python 包名是 MaaFw,导入名是 `maa`;当前不发布 PEP 561 类型信息。
reportMissingTypeStubs = "none"
# 项目大量动态边界来自 MaaFramework 回调、Qt Signal 和 JSON 配置。
# 保留 strict 的实质检查,但不为了消除 Unknown 传播而强行包一层项目内类型。
reportUnknownMemberType = "none"
reportUnknownArgumentType = "none"
reportUnknownVariableType = "none"
reportUnknownParameterType = "none"
reportUnknownLambdaType = "none"
# tests: 访问 protected 成员 + 解构未使用变量是测试常见模式
[[tool.pyright.executionEnvironments]]
root = "tests"
reportPrivateUsage = "none"
reportUnusedVariable = "none"
# tools: 工具脚本允许访问 protected 成员 + 解构未使用变量
[[tool.pyright.executionEnvironments]]
root = "tools"
reportPrivateUsage = "none"
reportUnusedVariable = "none"
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]