File size: 821 Bytes
84a7631
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[project]
name = "gemi2api-server"
version = "0.1.3"
license = "MIT"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
    "browser-cookie3>=0.20.1",
    "fastapi>=0.115.12",
    "gemini-webapi>=1.17.3",
    "uvicorn[standard]>=0.34.1",
]
[[tool.uv.index]]
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
default = true

[dependency-groups]
dev = [
    "ruff>=0.11.7",
]

[tool.ruff]
line-length = 150  # 设置最大行长度

[tool.ruff.lint]
select = ["E", "F", "W", "I"]  # 启用的规则(E: pycodestyle, F: pyflakes, W: pycodestyle warnings, I: isort)
ignore = ["E501", "W191"]  # 忽略特定规则(行长度警告和tab缩进警告)

[tool.ruff.format]
quote-style = "double"  # 使用双引号
indent-style = "tab"  # 使用tab缩进