forked from gqy20/IssueLab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (83 loc) · 1.94 KB
/
pyproject.toml
File metadata and controls
99 lines (83 loc) · 1.94 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[project]
name = "issuelab"
version = "0.1.0"
description = "AI 辅助科研评审系统"
requires-python = ">=3.13"
dependencies = [
"claude-agent-sdk>=0.1.29",
"pyyaml>=6.0",
"requests>=2.31.0",
"pyjwt>=2.8.0",
"cryptography>=41.0.0",
"feedparser>=6.0.0",
"PyGithub>=2.0.0",
]
[project.optional-dependencies]
test = ["pytest>=8.0.0", "pytest-asyncio>=0.23.0", "pytest-cov>=7.0.0"]
video = ["manim==0.19.0"]
dev = [
"ruff>=0.8.0",
"mypy>=1.13.0",
"pre-commit>=4.0.0",
"types-PyYAML>=6.0.12.20240917",
"types-requests>=2.32.0.20240914",
]
[tool.uv]
package = true
[tool.hatch.build.targets.wheel]
packages = ["src/issuelab"]
[tool.pytest.ini_options]
pythonpath = ["src"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
# 目标 Python 版本
target-version = "py312"
# 每行最大字符数
line-length = 120
# 排除目录
extend-exclude = [
"__pycache__",
".venv",
".git",
"build",
"dist",
"*.egg-info",
]
[tool.ruff.lint]
# 启用的规则集
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
# 忽略的规则
ignore = [
"E501", # 行长度由 formatter 处理
"B008", # 函数调用中的默认参数(fastapi 需要)
]
# 允许自动修复的规则
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
# 使用双引号
quote-style = "double"
# 缩进使用空格
indent-style = "space"
# 跳过魔术尾随逗号
skip-magic-trailing-comma = false
# 自动检测行尾符
line-ending = "auto"
[tool.ruff.lint.isort]
# isort 配置
known-first-party = ["issuelab"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]