Skip to content

refactor(exports): single-source __all__ from guard_core (O3)#96

Merged
rennf93 merged 1 commit into
masterfrom
refactor/export-ssot
Jun 23, 2026
Merged

refactor(exports): single-source __all__ from guard_core (O3)#96
rennf93 merged 1 commit into
masterfrom
refactor/export-ssot

Conversation

@rennf93

@rennf93 rennf93 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

Design-partner feedback O3 (fastapi-guard half). Supersedes #93, which GitHub auto-closed when its stacked base (feat/agent-init-clarity, #92) was merged + deleted. Same change, rebased directly onto master.

Derive guard.__all__ from guard_core.__all__ plus the two fastapi-guard locals instead of hand-duplicating the 22 re-exported names, so the lists can't silently drift. Re-exports use the explicit X as X typed form (no # noqa); combine-as-imports keeps the block tidy. A test asserts __all__ equals guard_core's surface plus the locals; the existing test already asserts every name is importable.

Also filters guard-core 3.2.0's new ipinfo_* DeprecationWarning in the test suite (fixtures set ipinfo_db_path).

Full suite: 243 passed, 100% line + branch, zero warnings (validated pre-rebase).

Part of the coordinated guard-core 3.2.0 release.

…ter (O3)

Derive guard.__all__ from guard_core.__all__ plus the two fastapi-guard
locals (SecurityMiddleware, __version__) instead of hand-duplicating the
22 re-exported names, so the lists can't silently drift. Re-exports use the
explicit `X as X` form (typed re-export, no F401); combine-as-imports keeps
the block tidy. A test asserts __all__ equals guard_core's surface plus the
locals; the existing test already asserts every name is importable.

Also filter guard-core 3.2.0's new ipinfo_* DeprecationWarning in the test
suite (fixtures set ipinfo_db_path); the guard-core side documents the
deprecation path.
@github-actions github-actions Bot added dependencies pyproject.toml or uv.lock area: integrations Touches public re-exports or framework wiring (guard/__init__.py) tests Test suite changes labels Jun 23, 2026
@rennf93 rennf93 merged commit 9c1ca99 into master Jun 23, 2026
3 of 10 checks passed
@rennf93 rennf93 deleted the refactor/export-ssot branch June 23, 2026 20:34
rennf93 added a commit that referenced this pull request Jun 23, 2026
…n docs

Bump 7.1.1 -> 7.2.0 for the work already merged: agent-init clarity +
[agent] extra + agent_strict + on_error(agent_init) (#92), export
single-source-of-truth (#96), Passive-to-Active guide (#94), behavioral
wiring docs (#95). CHANGELOG + release-notes filled. Requires guard-core
3.2.0+.
rennf93 added a commit that referenced this pull request Jun 23, 2026
…n docs (#98)

Bump 7.1.1 -> 7.2.0 for the work already merged: agent-init clarity +
[agent] extra + agent_strict + on_error(agent_init) (#92), export
single-source-of-truth (#96), Passive-to-Active guide (#94), behavioral
wiring docs (#95). CHANGELOG + release-notes filled. Requires guard-core
3.2.0+.

Co-authored-by: Renn F <rennf93@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: integrations Touches public re-exports or framework wiring (guard/__init__.py) dependencies pyproject.toml or uv.lock tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant