Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
69 lines (64 loc) · 1.57 KB
/
Copy pathpyproject.toml
File metadata and controls
69 lines (64 loc) · 1.57 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
[project]
name = "parsehubbot"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"aiosqlite>=0.22.1",
"alembic>=1.18.5",
"easy-ai18n>=1.2.1",
"haishoku>=1.1.8",
"httpx[socks]>=0.28.1",
"kurigram>=2.2.24",
"loguru>=0.6.0",
"lxml-html-clean>=0.4.1",
"markdown>=3.7",
"parsehub>=2.4.0",
"pillow>=12.1.1",
"pillow-heif>=1.1.1",
"pydantic>=2.12.5",
"pydantic-settings>=2.11.0",
"python-dotenv>=1.0.1",
"pyyaml>=6.0.3",
"sqlalchemy[asyncio]>=2.0.51,<2.1",
"telegraph>=2.2.0",
"tgcrypto>=1.2.5",
"uvloop>=0.22.1 ; sys_platform != 'win32'",
"winloop>=0.3.1 ; sys_platform == 'win32'",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle 错误检查
"W", # pycodestyle 警告检查
"F", # pyflakes 错误检查
"I", # isort 导入排序
"B", # flake8-bugbear 常见错误检查
"C4", # flake8-comprehensions 列表/字典推导式检查
"UP", # pyupgrade 自动升级语法
]
ignore = [
"B008", # 不在参数默认值中执行函数调用
"C901", # 函数复杂度过高
]
[dependency-groups]
dev = [
"easy-ai18n[builder]>=1.2.1",
"mypy>=2.1.0",
"pytest>=9.1.1",
]
[tool.mypy]
python_version = "3.12"
files = ["./"]
ignore_missing_imports = true
warn_return_any = true
warn_unused_ignores = true
check_untyped_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
[tool.pytest.ini_options]
testpaths = ["test"]
pythonpath = ["."]
python_files = ["test_*.py"]