[project]
name = "pve-vm-setup"
version = "0.1.0"
description = "Textual TUI for creating Proxmox VMs with live diagnostics."
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
  "httpx>=0.27,<0.29",
  "python-dotenv>=1.0,<2.0",
  "textual>=0.63,<0.90",
]

[dependency-groups]
dev = [
  "pytest>=8.3,<9.0",
  "pytest-asyncio>=0.24,<1.0",
  "ruff>=0.9,<1.0",
]

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

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

[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = [
  "live: hit a real Proxmox API endpoint",
  "live_create: create real Proxmox resources and clean them up",
]
testpaths = ["tests"]

[tool.ruff]
line-length = 100
target-version = "py311"

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