Core Architecture & Invariant CI / validate (pull_request) Successful in 16s
- Declare pillow in pyproject.toml dependencies and ps.pillow in flake.nix runtimeDeps - Extend CaptureClient.__init__ with optional max_width and jpeg_quality keyword arguments - Add _recompress_jpeg helper preserving aspect ratio, never upscaling, defaulting quality to 75 when resizing, and raising TvError(SCREENSHOT_UNAVAILABLE) on corrupt image bytes - Compute frame_sha256, changed_since_last, and size_bytes on the final delivered image_bytes - Wire capture_max_width and capture_jpeg_quality into CaptureClient in create_mcp_server() - Add offline unit tests in tests/test_capture.py and tests/test_server.py
49 lines
1.0 KiB
TOML
49 lines
1.0 KiB
TOML
[build-system]
|
|
requires = ["setuptools"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "lg-smtv-mcp"
|
|
version = "0.1.0"
|
|
description = "MCP server for controlling an LG webOS Smart TV over the local network"
|
|
requires-python = ">=3.14"
|
|
dependencies = [
|
|
"websockets",
|
|
"mcp",
|
|
"pydantic",
|
|
"asyncssh",
|
|
"uvicorn",
|
|
"pillow",
|
|
]
|
|
|
|
[project.scripts]
|
|
lg-smtv-mcp = "lg_smtv_mcp.cli:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
pythonpath = ["src"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py314"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "TID"]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"docs/poc/*" = ["TID251"]
|
|
|
|
[tool.ruff.lint.flake8-tidy-imports.banned-api]
|
|
"__future__.annotations".msg = "Python 3.14 evaluates annotations lazily by default (PEP 649); omit from __future__ import annotations."
|
|
|
|
[tool.ruff.format]
|
|
exclude = ["docs/poc/**"]
|
|
|
|
[tool.pyright]
|
|
include = ["src", "tests"]
|
|
typeCheckingMode = "strict"
|
|
pythonVersion = "3.14"
|