-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (111 loc) · 2.86 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (111 loc) · 2.86 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[project]
name = "hometube"
version = "2.12.1"
description = "HomeTube development workspace"
requires-python = ">=3.11"
license = "AGPL-3.0-or-later"
license-files = ["LICENSE", "NOTICE"]
authors = [{ name = "Yann Orieult" }]
maintainers = [{ name = "Yann Orieult" }]
dependencies = [
"streamlit>=1.49,<1.63",
"requests>=2.32.5",
"python-dotenv>=1.1.1",
]
[project.optional-dependencies]
local = [
"yt-dlp>=2025.9.23",
]
docker = [
"streamlit>=1.49,<1.63",
"requests>=2.32.5",
"python-dotenv>=1.1.1",
]
test = [
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"pytest-xdist>=3.8.0",
]
dev = [
"black==26.5.1",
"ruff==0.16.5",
"watchdog>=6.0.0",
]
[build-system]
requires = ["setuptools>=80.8.0", "wheel>=0.45.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
include = ["app*"]
exclude = ["tests*", "docs*", "tmp*", "cookies*", "downloads*", "htmlcov*"]
[tool.uv]
# Install dev dependencies by default for development workflow
# Make uv aware to install dev extras when syncing (for local development)
dev-dependencies = [
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"pytest-xdist>=3.8.0",
"black==26.5.1",
"ruff==0.16.5",
"watchdog>=6.0.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = ["--strict-markers","--strict-config","--verbose","--tb=short"]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
"network: Tests requiring network access",
"external: Tests requiring external tools (yt-dlp, ffmpeg, etc.)",
"performance: Performance tests",
"stress: Stress tests",
]
[tool.black]
line-length = 88
target-version = ["py311"]
include = '\.pyi?$'
extend-exclude = '''
/(
\.git
| \.venv
| venv
| __pycache__
| tmp
| downloads
| cookies
)/
'''
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
# Ruff's historical default rule set, stated explicitly. Without this the
# project inherits whatever ruff currently defaults to, so a routine version
# bump silently widens what CI enforces — 0.16 did exactly that and turned a
# dependency update into a repo-wide lint failure. Widen this list on purpose,
# never by upgrading.
select = ["E4", "E7", "E9", "F"]
[tool.coverage.run]
source = ["app"]
omit = ["*/tests/*","*/test_*","*/__pycache__/*","*/venv/*","*/.venv/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]