[project]
name = "styrene-tui"
version = "0.5.0"
description = "Terminal UI for Styrene mesh network management"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11, <3.13"
authors = [
    { name = "styrene-lab" }
]
keywords = ["tui", "terminal", "fleet", "provisioning", "reticulum"]
classifiers = [
    "Development Status :: 3 - Alpha",
    "Environment :: Console",
    "Intended Audience :: System Administrators",
    "License :: OSI Approved :: MIT License",
    "Operating System :: POSIX :: Linux",
    "Operating System :: MacOS",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Topic :: System :: Systems Administration",
]

dependencies = [
    "styrened>=0.6.0",      # Provides: rns, lxmf, RPC, pyyaml, platformdirs, sqlalchemy, msgpack
    "textual>=0.47.0",      # TUI framework
    "psutil>=5.9",          # Hardware detection (TUI-specific)
]

[project.optional-dependencies]
dev = [
    "pytest>=8.0",
    "pytest-asyncio>=0.23",
    "pytest-cov>=4.0",
    "pytest-forked>=1.6",
    "pytest-textual-snapshot>=1.0",
    "textual-dev>=1.0",
    "ruff>=0.1",
    "mypy>=1.8",
    "types-PyYAML",
]

[project.scripts]
styrene = "styrene.__main__:main"

[project.urls]
Repository = "https://github.com/styrene-lab/styrene-tui"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/styrene"]

[tool.ruff]
line-length = 100
target-version = "py311"
exclude = [
    ".claude/skills/*/templates/",
    "examples/",
    "packages/",
]

[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
ignore = ["E501"]

[tool.ruff.lint.isort]
known-first-party = ["styrene"]

[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true

[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
filterwarnings = [
    # LXMF upstream uses deprecated setDaemon() - suppress until fixed upstream
    "ignore:setDaemon\\(\\) is deprecated:DeprecationWarning:LXMF",
]
