- flake.nix: expose packages.default (buildPythonApplication) and expand devShell with mcp, asyncssh, uvicorn, httpx, pytest, pytest-asyncio, and PYTHONPATH shellHook - pyproject.toml: configure setuptools build-system, project metadata/dependencies, lg-smtv-mcp script entrypoint, pytest asyncio/pythonpath, and pyright include paths - tests/test_config.py: add Red-phase unit tests for ErrorCode, TvError, load_config(), .env fallback, validation, ALLOWED_HOSTS, require_bearer_token(), and require_mac()
38 lines
705 B
TOML
38 lines
705 B
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.11"
|
|
dependencies = [
|
|
"websockets",
|
|
"mcp",
|
|
"asyncssh",
|
|
"uvicorn",
|
|
]
|
|
|
|
[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"]
|
|
|
|
[tool.pyright]
|
|
include = ["src", "tests"]
|
|
typeCheckingMode = "standard"
|
|
pythonVersion = "3.14"
|