build: add pyte and measure subprocess coverage

pyte is a VT100 emulator; the curses tests will run pqcli in a
pseudo-terminal and read the rendered screen through it.

Coverage now also measures the pqcli processes the tests start, so the
curses UI and the existing CLI subprocess tests count towards the
report.
This commit is contained in:
Dash committed 2026-10-17 19:46:04 +02:00
1 parent dde49cf2dd
commit 92d4466f6d
2 files changed
+56 -1

No files matched your search

+6 -1
View File
@@ -37,7 +37,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = ["prek>=0.2", "pytest>=8.0", "ty>=0.0.89"]
dev = ["prek>=0.2", "pyte>=0.8", "pytest>=8.0", "ty>=0.0.89"]
[tool.ty.src]
# Only the package and its tests; agent worktrees under .claude/ would
@@ -52,3 +52,8 @@ select = ["E", "F", "W", "I", "UP"]
[tool.ruff.lint.isort]
known-first-party = ["pqcli"]
[tool.coverage.run]
# Also measure the pqcli processes the tests start, such as the curses
# UI driven through a pseudo-terminal.
patch = ["subprocess"]