-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (68 loc) · 1.85 KB
/
Copy pathpyproject.toml
File metadata and controls
78 lines (68 loc) · 1.85 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "vidbrain"
version = "0.1.0"
description = "本地视频 ASR 提取与云端 Agent 自迭代 Obsidian 知识库系统"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
keywords = ["whisper", "obsidian", "knowledge-base", "agent"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"faster-whisper>=1.1.0",
"watchdog>=6.0.0",
"openai>=1.55.0",
"langgraph>=0.2.0",
"numpy>=1.24.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"pytest-mock>=3.14",
"ruff>=0.8.0",
"mypy>=1.10",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short --strict-markers"
[tool.coverage.run]
source = ["src"]
omit = ["src/main.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]
fail_under = 80
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
exclude = ["tests/", "src/main.py"]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src", "tests"]
exclude = [".git", ".venv", "__pycache__", ".mypy_cache", ".pytest_cache", "build", "dist"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "C90"]
ignore = ["E203", "E501"]
[tool.ruff.lint.mccabe]
max-complexity = 10