-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (71 loc) · 1.76 KB
/
pyproject.toml
File metadata and controls
79 lines (71 loc) · 1.76 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "ai-video-comment-analyzer"
version = "0.1.0"
description = "YouTube comment analysis tool that extracts, categorizes, and prioritizes audience feedback"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.34.0",
"sqlalchemy>=2.0.0",
"pydantic>=2.0.0",
"yt-dlp>=2024.0.0",
"huggingface-hub>=0.36.0",
"python-dotenv>=1.2.1",
"httpx>=0.28.1",
"transformers>=4.47.0",
"bertopic>=0.16.0",
"torch>=2.5.0",
"sentence-transformers>=3.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=4.0.0",
"httpx>=0.27.0",
"ruff>=0.8.0",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B904", # raise from within except
"B905", # zip() without strict (not always needed)
"B007", # loop control variable not used (often intentional)
]
[tool.ruff.lint.isort]
known-first-party = ["api"]
[tool.coverage.run]
source = ["api"]
branch = true
omit = [
"api/__init__.py",
"api/*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
fail_under = 65