-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (65 loc) · 1.99 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (65 loc) · 1.99 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
[project]
name = "kbox"
version = "0.1.0"
description = "Self-contained open-source karaoke system"
requires-python = ">=3.13"
dependencies = [
"fastapi",
"uvicorn[standard]",
"jinja2",
"itsdangerous",
"google-api-python-client",
"yt-dlp",
"qrcode[pil]",
"litellm>=1.81.0",
]
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-playwright>=0.5",
"httpx>=0.27",
"ruff>=0.8",
"mypy>=1.13",
"pre-commit>=4.0",
# Lets the GStreamer tests (and the app itself) run on a macOS dev
# machine. macOS only: Linux and the Docker image get GObject
# introspection from the system python3-gi package instead.
"pygobject>=3.50; sys_platform == 'darwin'",
"pycairo>=1.26; sys_platform == 'darwin'",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["kbox"]
[tool.pytest.ini_options]
testpaths = ["test"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "-m 'not e2e and not benchmark'"
markers = [
"e2e: Playwright browser tests (run with -m e2e; requires playwright install chromium webkit)",
"benchmark: pipeline performance benchmarks (run with -m benchmark; numbers only meaningful on target hardware)",
]
filterwarnings = [
"ignore::DeprecationWarning:gi.*",
]
[tool.ruff]
line-length = 100
target-version = "py313"
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"] # line too long - let formatter handle it
[tool.ruff.lint.per-file-ignores]
"test/*" = ["E402", "E722", "F841"] # E402: imports after pytestmark, E722: bare except, F841: unused vars for setup
[tool.mypy]
python_version = "3.13"
warn_return_any = false # Too noisy for database/external library returns
warn_unused_configs = true
ignore_missing_imports = true # GStreamer/gi has no stubs
exclude = ["test/"]
# All error codes enabled - no exclusions