Scaffold bggpipe: typer CLI, config loading, title normalization

uv project with typer/httpx/rapidfuzz, ruff and pytest wired into
pyproject. Six stub subcommands matching the pipeline stages, config.toml
plus BGG_USERNAME env override, accent/ampersand/article-safe title
normalization with tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Eric Wagoner
2026-08-01 12:23:00 -04:00
parent 6bd4222fc1
commit d58568cceb
11 changed files with 626 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
from __future__ import annotations
import pytest
def pytest_addoption(parser: pytest.Parser) -> None:
parser.addoption(
"--run-live",
action="store_true",
default=False,
help="Run tests marked 'live' (hit the real BGG API, read-only)",
)
def pytest_collection_modifyitems(
config: pytest.Config, items: list[pytest.Item]
) -> None:
if config.getoption("--run-live"):
return
skip_live = pytest.mark.skip(reason="live BGG test; pass --run-live to enable")
for item in items:
if "live" in item.keywords:
item.add_marker(skip_live)