generated from john/python-template
Quality Gate / gate (push) Failing after 11s
Update the reviewer skill so its procedure matches how this repo actually works: - Route review reports to docs/reviews/ and mark them non-canonical, resolving the conflict where reports landed in the same docs/ tree they resolve findings against. - Pin verification commands to uv (uv run ruff check / ty check / pytest -m 'not external'). - Record the pytest contract: strict markers, strict asyncio mode, and the never-awaited-coroutine warning promoted to an error. - Convert the deterministic checks to a table with an Enforced by column; three checks are unenforced and one only partial, which are now findings by construction. - Add a consequence-based severity rubric and a Direction column for bidirectional drift. - Escalate test-suite concerns to test-effectiveness-auditor. Also fix tests/test_db.py, which was missing 'from sqlalchemy import text' while using it in 14 places. Three tests were failing with NameError. Wrapped the pre-existing long lines in the same file so it lints clean. Document the deliberate nicegui==3.13.0 pin in pyproject.toml, a new runbook dependency upgrade policy, and the reviewer skill, so the pin is not flagged as a defect or widened as incidental cleanup. Co-authored-by: Copilot App <[email protected]>
57 lines
1.5 KiB
TOML
57 lines
1.5 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/transcription"]
|
|
|
|
[project]
|
|
name = "transcription"
|
|
version = "0.1.0"
|
|
description = "Historical document transcription system"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"aiosqlite>=0.21.0",
|
|
"asyncpg>=0.31.0",
|
|
"fastapi>=0.138.0",
|
|
# Exact pin, deliberate. NiceGUI 3.x minor releases ship Quasar/Vue changes that
|
|
# break component props and styling, and tests/ui/ cannot detect visual regressions.
|
|
# Hold through the current release stabilization; revisit as a scheduled upgrade.
|
|
# See docs/production-runbook.md, "Dependency upgrade policy".
|
|
"nicegui==3.13.0",
|
|
"openrouter>=0.7.0",
|
|
"pillow>=10.0.0",
|
|
"psycopg2-binary>=2.9.12",
|
|
"pydantic>=2.13.4",
|
|
"pydantic-settings>=2.9.1",
|
|
"sqlmodel>=0.0.25",
|
|
]
|
|
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.25",
|
|
"httpx2>=2.5.0",
|
|
"ipykernel>=7.3.0",
|
|
"ipywidgets>=8.1.8",
|
|
"pre-commit>=4.6.0",
|
|
"rich>=15.0.0",
|
|
"ruff>=0.15.20",
|
|
"ty>=0.0.54",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "--strict-markers -q"
|
|
asyncio_mode = "strict"
|
|
asyncio_default_fixture_loop_scope = "function"
|
|
filterwarnings = [
|
|
"error:coroutine .* was never awaited:RuntimeWarning",
|
|
]
|
|
markers = [
|
|
"unit: pure logic tests with no external dependencies",
|
|
"integration: tests that touch framework or database contracts",
|
|
"external: tests that call external services (slow, requires credentials)",
|
|
]
|