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:
@@ -0,0 +1,35 @@
|
||||
[project]
|
||||
name = "bggpipe"
|
||||
version = "0.1.0"
|
||||
description = "Shelf-to-BGG collection pipeline: photos in, BoardGameGeek collection out"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"typer>=0.12",
|
||||
"httpx>=0.27",
|
||||
"rapidfuzz>=3.9",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
bggpipe = "bggpipe.cli:app"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest>=8",
|
||||
"ruff>=0.5",
|
||||
]
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py312"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "I", "UP", "B", "SIM"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
markers = [
|
||||
"live: hits the real BGG API; skipped unless --run-live is passed",
|
||||
]
|
||||
Reference in New Issue
Block a user