Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (67 loc) · 1.71 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (67 loc) · 1.71 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ling-chat"
version = "0.4.0pre"
description = "Ai驱动的聊天,陪伴软件与gal引擎"
readme = "README.md"
authors = [
{ name = "0x00-pl", email = "0x00.pl@gmail.com" },
]
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.116.1",
"uvicorn>=0.35.0",
"httpx>=0.28.0",
"pywebview>=5.4",
"openai>=1.85.0",
"platformdirs>=4.3.8",
"python-multipart>=0.0.20",
"websockets>=15.0.1",
"mss>=10.0.0",
"py7zr>=1.0.0",
"onnxruntime>=1.17.0",
"numpy>=1.24.0",
"pillow>=10.0.0",
"sqlmodel>=0.0.31",
"pyyaml>=6.0.2",
"pynput>=1.8.1",
"imagehash>=4.3.2",
"rapidocr-onnxruntime>=1.4.4",
"packaging>=21.0",
"tqdm>=4.65.0",
]
[tool.setuptools]
packages = ["ling_chat"]
[tool.uv]
index-strategy = "unsafe-best-match"
default-groups = ["dev"]
[dependency-groups]
dev = [
"ruff>=0.14.10",
"pytest>=7.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=6.2.1",
]
[[tool.uv.index]]
name = "tuna"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
default = true
[tool.uv.pip]
resolution = "highest"
[tool.ruff]
# 设置最大行长度
line-length = 88
# 目标Python版本与项目保持一致
target-version = "py313"
# 指定要检查的源代码目录
src = ["ling_chat", "tests"]
[tool.ruff.lint]
# 启用pycodestyle errors (E), warnings (W), pyflakes (F), isort (I), flake8-comprehensions (C), flake8-bugbear (B)
select = ["E", "W", "F", "I", "C", "B"]
# 忽略行长度过长的错误,由格式化工具处理
ignore = ["E501", "C901"]
# 为__init__.py文件忽略未使用的导入(F401)
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]