- Set requires-python = ">=3.14" in pyproject.toml to match the Nix Python 3.14 runtime and PEP 649 native deferred annotation semantics - Remove redundant from __future__ import annotations across src/lg_smtv_mcp/ and tests/test_config.py - Add ruff TID251 rule banning __future__.annotations in package and test modules (ignoring docs/poc/*) - Switch pyright typeCheckingMode from basic to strict in pyproject.toml
44 lines
957 B
TOML
44 lines
957 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",
|
|
"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.pyright]
|
|
include = ["src", "tests"]
|
|
typeCheckingMode = "strict"
|
|
pythonVersion = "3.14"
|