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

[project]
name = "media-library-viewer"
version = "0.1.0"
description = "Streamlit app for browsing Jellyfin libraries and inspecting remote media files over SSH."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "Media Library Viewer contributors" }]
dependencies = [
    "streamlit>=1.35",
    "streamlit-aggrid>=1.0",
    "requests>=2.31",
    "paramiko>=3.4",
    "python-dotenv>=1.0",
    "pandas>=2.0",
]

[project.optional-dependencies]
dev = [
    "ruff>=0.4",
    "pytest>=8.0",
]

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

[tool.ruff]
line-length = 120
target-version = "py311"
src = ["src", "tests"]

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

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
