Files
lg-smtv-mcp/pyproject.toml
T
kiskaadee 290c1a1f6a
Core Architecture & Invariant CI / validate (pull_request) Successful in 16s
refactor(config): deduplicate IPv4/bounded-int validators and exclude docs/poc from ruff format
- Extract shared _parse_ipv4 and _parse_bounded_int helpers in config.py and reject float/non-int values instead of truncating (CR-01)
- Add direct TvConfig float rejection tests in tests/test_config.py
- Exclude docs/poc/** under [tool.ruff.format] in pyproject.toml and revert formatting churn in docs/poc/tv_test.py (CR-02)
2026-11-15 14:02:23 -05:00

48 lines
1019 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.14"
dependencies = [
"websockets",
"mcp",
"pydantic",
"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", "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"