Files
weekly-activity/pyproject.toml
kosmos daf0a203a0 refactor(wizard): replace hand-rolled arrow-key menu with questionary
The reviewer asked for a known-good interactive-menu library instead of
the custom termios/select key reader; arrow keys had failed in their
terminal. The TTY path now delegates to questionary.select (pointer ">",
bold highlight via pointer/selected styles), keeping choice values mapped
to list indices. Cancellable menus graft an eager Escape binding onto the
prompt's own key-binding registry so Esc backs out while Ctrl-C still
aborts fixed menus and backs out of cancellable ones. The non-TTY
numbered fallback is untouched, and hand-rolled internals
(_arrow_menu/_read_keypress/_option_line/_draw_menu_rows) are gone.
2026-08-27 08:36:56 +00:00

40 lines
846 B
TOML

[project]
name = "weekly-activity"
version = "0.3.0"
description = "Weekly activity report (merge proposals, pull requests, bugs, issues) for Launchpad and GitHub."
requires-python = ">=3.11"
dependencies = [
"launchpadlib>=2.1.0",
"keyring>=25",
"httpx>=0.27",
"python-debianbts>=4.1.1",
"questionary>=2.1.1",
]
[project.scripts]
weekly-activity = "weekly_activity.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = ["ruff>=0.6", "ty>=0.0.1"]
build = ["pyinstaller>=6"]
[tool.hatch.build.targets.wheel]
packages = ["src/weekly_activity"]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "C4"]
[tool.ruff.format]
docstring-code-format = true
[tool.ty.environment]
python-version = "3.11"