generated from coulomb/repo-seed
Adds tests/test_error_paths.py covering real failure contracts (red-link single() KeyError, unknown/unattached-shard apply_overlay, kernel.delete missing, conformance survives a broken profile, Placement str). Adds a [tool.coverage.report] fail_under=90 floor (engages on pytest --cov, not bare pytest). 76 tests, 98% coverage, pyflakes clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
51 lines
1.1 KiB
TOML
51 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "shard-wiki"
|
|
version = "0.0.0"
|
|
description = "Git-based Markdown wiki orchestrator and federation layer"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
license = "MIT-0"
|
|
authors = [{ name = "Bernd Worsch", email = "bernd.worsch@gmail.com" }]
|
|
keywords = ["wiki", "markdown", "git", "federation", "orchestration"]
|
|
dependencies = []
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-cov>=5.0",
|
|
"ruff>=0.6",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/tegwick/shard-wiki"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/shard_wiki"]
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "7.0"
|
|
testpaths = ["tests"]
|
|
addopts = "-ra --strict-markers --strict-config"
|
|
pythonpath = ["src"]
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
source = ["shard_wiki"]
|
|
|
|
[tool.coverage.report]
|
|
show_missing = true
|
|
# Quality floor for `pytest --cov` / `coverage report` (not forced on a bare `pytest` run).
|
|
fail_under = 90
|
|
|
|
[tool.ruff]
|
|
src = ["src", "tests"]
|
|
target-version = "py311"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "SIM"]
|