Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (54 loc) · 1.48 KB
/
Copy pathpyproject.toml
File metadata and controls
66 lines (54 loc) · 1.48 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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "good-price"
version = "0.3.0"
description = "闲鱼盯价助手:本地 Web 工具,监控关键词新上架商品,LLM 品相分析 + 微信提醒"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "comui" }]
dependencies = [
"fastapi>=0.110",
"uvicorn[standard]>=0.29",
"sqlalchemy>=2.0",
"pydantic>=2.6",
"pydantic-settings>=2.2",
"apscheduler>=3.10,<4",
"playwright==1.62.0",
"beautifulsoup4>=4.12",
"httpx>=0.27",
"httpcore>=1,<2",
"pillow>=10.4",
"psutil>=6",
"jinja2>=3.1",
"python-multipart>=0.0.9",
"json-repair>=0.30",
]
[project.optional-dependencies]
dev = ["pytest>=8.0", "pytest-cov>=4.1", "ruff>=0.6"]
jev = ["typesafe-sdk>=0.7"]
[project.scripts]
good-price = "goodprice.main:main"
[tool.setuptools.packages.find]
include = ["goodprice*"]
[tool.setuptools.package-data]
"goodprice.web" = ["templates/*.html", "static/*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
# 起步基线:pyflakes + 导入排序 + 核心 pycodestyle + bugbear。
# E501 交给将来的 formatter;B008 是 FastAPI 依赖注入惯用法。
select = ["E", "F", "I", "B"]
ignore = ["E501", "B008"]
[tool.ruff.lint.isort]
known-first-party = ["goodprice"]
[tool.coverage.run]
source = ["goodprice"]
[tool.coverage.report]
show_missing = true