Spaces:
Paused
Paused
Upload pyproject.toml
Browse files- pyproject.toml +29 -0
pyproject.toml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "gemi2api-server"
|
| 3 |
+
version = "0.1.1"
|
| 4 |
+
description = "Add your description here"
|
| 5 |
+
readme = "README.md"
|
| 6 |
+
requires-python = ">=3.11"
|
| 7 |
+
dependencies = [
|
| 8 |
+
"browser-cookie3>=0.20.1",
|
| 9 |
+
"fastapi>=0.115.12",
|
| 10 |
+
"gemini-webapi>=1.11.0",
|
| 11 |
+
"uvicorn[standard]>=0.34.1",
|
| 12 |
+
]
|
| 13 |
+
[[tool.uv.index]]
|
| 14 |
+
url = "https://pypi.org/simple"
|
| 15 |
+
default = true
|
| 16 |
+
|
| 17 |
+
[dependency-groups]
|
| 18 |
+
dev = [
|
| 19 |
+
"ruff>=0.11.7",
|
| 20 |
+
]
|
| 21 |
+
|
| 22 |
+
[tool.ruff]
|
| 23 |
+
line-length = 150 # 设置最大行长度
|
| 24 |
+
select = ["E", "F", "W", "I"] # 启用的规则(E: pycodestyle, F: pyflakes, W: pycodestyle warnings, I: isort)
|
| 25 |
+
ignore = ["E501"] # 忽略特定规则(如行长度警告)
|
| 26 |
+
|
| 27 |
+
[tool.ruff.format]
|
| 28 |
+
quote-style = "double" # 使用双引号
|
| 29 |
+
indent-style = "tab" # 使用空格缩进
|