forked from OneDragon-Anything/ZenlessZoneZero-OneDragon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (75 loc) · 1.98 KB
/
Copy pathpyproject.toml
File metadata and controls
85 lines (75 loc) · 1.98 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
77
78
79
80
81
82
83
84
85
[project]
name = "ZenlessZoneZero-OneDragon"
version = "2.0.0"
description = "绝区零 一条龙 | 全自动 | 自动闪避 | 自动每日 | 自动空洞 | 支持手柄"
requires-python = ">=3.11.9,<3.12"
dependencies = [
"pyside6==6.8.0.2",
"pyside6-fluent-widgets==1.11.1",
"pyyaml==6.0.1",
"opencv-python==4.10.0.84",
"pyautogui==0.9.54",
"pynput==1.7.7",
"onnxruntime-directml==1.18.0",
"mss==9.0.1",
"shapely==2.0.4",
"pyclipper==1.3.0.post5",
"soundcard==0.4.3",
"librosa==0.10.2.post1",
"gensim==4.3.3",
"pygit2==1.19.0",
]
[dependency-groups]
dev = [
"colorama==0.4.6",
"matplotlib==3.10.3",
"polib==1.2.0",
"pyinstaller==6.7.0",
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
"ruff>=0.12.10",
"pyuac==0.0.3",
]
gamepad = [
"vgamepad==0.1.0",
]
[tool.uv]
package = false
cache-dir = "./.install/uv_cache"
environments = ["sys_platform == 'win32'"]
default-groups = []
# Ruff configuration
[tool.ruff]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.11
target-version = "py311"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # mccabe
"B", # bugbear
"UP", # pyupgrade
"SIM", # simplify
"TID", # tidy imports
]
ignore = ["RUF001", "RUF003"]
extend-ignore = [
"E501", # line too long - already handled by black style
"C901", # method too complex - need refactor
"SIM102", # nested if statements - maybe more clear to seperate conditions
]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"