-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (70 loc) · 1.86 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (70 loc) · 1.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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "hum"
version = "0.1.0"
description = "Hum — a self-hosted YouTube audio streamer for the home"
readme = "README.md"
requires-python = ">=3.11"
license = {file = "LICENSE"}
authors = [{name = "Hum Contributors"}]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Multimedia :: Sound/Audio",
]
dependencies = [
"fastapi>=0.110",
"uvicorn[standard]>=0.27",
"pytubefix>=10.7.2",
"httpx>=0.27",
"pydantic>=2.6",
"pydantic-settings>=2.2",
"python-dotenv>=1.0",
"blake3>=1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-mock>=3.12",
"ruff>=0.4",
"mypy>=1.10",
]
[project.scripts]
hum = "app.main:main"
[tool.setuptools.packages.find]
include = ["app*"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP", "N", "ANN", "SIM", "C4"]
[tool.ruff.lint.per-file-ignores]
# pytubefix is untyped; the adapter intentionally exposes Any across its boundary.
"app/adapters/youtube.py" = ["ANN401"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
python_version = "3.11"
strict = true
warn_unused_ignores = true
disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
[[tool.mypy.overrides]]
module = ["pytubefix.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "8.0"
addopts = "-ra --strict-markers -m 'not integration'"
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"
markers = [
"integration: hits real YouTube; opt-in (run with -m integration)",
]