diff --git a/pyproject.toml b/pyproject.toml index 9579044..c6be7f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,9 @@ dev = [ requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.build] +exclude = ["/.superpowers"] + [tool.hatch.build.targets.wheel] packages = ["src/agentseek_api"] diff --git a/tests/unit/test_release_artifacts.py b/tests/unit/test_release_artifacts.py new file mode 100644 index 0000000..080257c --- /dev/null +++ b/tests/unit/test_release_artifacts.py @@ -0,0 +1,14 @@ +from __future__ import annotations + +import tomllib +from pathlib import Path + + +ROOT = Path(__file__).resolve().parents[2] + + +def test_release_build_excludes_private_superpowers_artifacts() -> None: + with (ROOT / "pyproject.toml").open("rb") as handle: + project = tomllib.load(handle) + + assert "/.superpowers" in project["tool"]["hatch"]["build"]["exclude"]