-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
48 lines (38 loc) · 1.38 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
[project]
name = "NapCatQQ-Desktop"
version = "v1.4.0"
description = "为 NapCat 提供管理界面(GUI),目的是让用户能够更快速、更直观的使用 NapCat"
authors = [
{name = "Qiao", email = "qiaohuayuquan@qq.com"},
]
dependencies = [
"httpx>=0.27.2",
"pydantic>=2.9.0",
"PySide6-Fluent-Widgets>=1.6.3",
"psutil>=6.0.0",
"markdown>=3.7",
"nuitka>=2.4.8",
"frida>=16.5.6",
"websockets>=13.1",
]
requires-python = "==3.12.*"
readme = "README.md"
license = {text = "GPLv3"}
[tool.pdm]
distribution = false
[tool.black]
line-length = 120 # 设置代码行的最大长度为 120 字符
target-version = ['py312'] # 目标 Python 版本为 3.12
[tool.isort]
known_first_party = ["NapCatQQ-Desktop"]
profile = "black" # 兼容 black
line_length = 120 # 将行长度设置为与 black 一致
length_sort = true # 按导入语句的长度进行排序
# 导入分类顺序:未来标准库、标准库、第三方库、PySide6 库、项目内库,和本地库
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "PYSIDE6", "FIRSTPARTY", "LOCALFOLDER"]
known_pyside6 = ["PySide6"] # 将 PySide6 标记为单独的分组
no_lines_before = ["PYSIDE6"] # 确保在 PYSIDE6 之前没有空行
# 导入自动注释
import_heading_stdlib = "标准库导入"
import_heading_thirdparty = "第三方库导入"
import_heading_firstparty = "项目内模块导入"