Repository navigation
Conversation
Refs #2 (plan comment 6966337195, re-verified claim-by-claim at live main 830d287 — the plan's head, unchanged). Plan steps 1-2; step 3 (tag v0.1.0 + GitHub release) is the owner's call and is not attempted here. - ruff: all 7 errors fixed via `ruff check --fix` (I001 x3, RUF022, UP035, UP045 x2); the auto-fix also dropped the now-unused `Optional` import in container.py and a stray blank line in test_core.py. `ruff check src tests` now exits 0. - README Quick Start: the universe/system example pair (functions "all" vs "organized", Jaccard 0) is replaced by the CLI smoke path's own framework/bounded-system pair (function="govern" both, porous / semi_permeable, scale_range (0,100) vs scale 1), so the documented example now returns True exactly as `rules-system-bound --json` reports `can_contain: true`. Also fixes the stale "status: ok" line — the command returns `"status": "runnable"`. - .github/workflows/ci-python.yml: new `Lint` step (`ruff check src tests`) after tests, so the audit's acceptance criterion is gated by CI instead of honor-system (ruff is in the dev extras CI already installs). Local verification at base 830d287: pytest 30 passed; ruff clean; README Quick Start snippet runs verbatim and returns True; CLI --json status "runnable", can_contain true, version 0.1.0; ci-python.yml parses.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Reviewer's GuideData structuresUpdate Container’s optional parent annotations to use the modern union syntax while preserving its public structure.
APIReorder package imports and all entries to satisfy Ruff without changing the exported public API.
ImplementationUse collections.abc for Sequence in the CLI module to satisfy Ruff’s import rules.
ConfigurationAdd a CI lint step so Ruff checks the source and tests on each workflow run.
DocumentationAlign the README Quick Start containment example with the CLI smoke path and correct the documented status value.
TestsReorder imports and remove an extra blank line in the tests to satisfy Ruff without changing test behavior.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Superseded — closing this loop draft PR, no merge. Anthony merged #21 (README Quick Start containment result, closes #1) and #22 (ruff 7 auto-fixes + |
What this does
Refs #2 (plan steps 1–2; plan comment 6966337195, re-verified claim-by-claim at live main
830d2879— the plan's own head, unchanged since it was posted). The issue stays open; tagv0.1.0+ release is the owner's call (plan step 3), and closure is Anthony's call. The sharedcan_containitem means #1 and #2 close together once this lands.ruff check --fix src testsfixed I001 x3, RUF022 (__all__unsorted), UP035 (Sequencefromcollections.abc), UP045 x2 (X | None). The auto-fix also dropped the now-unusedOptionalimport incontainer.pyand a stray blank line intest_core.py— mechanical consequences of the listed fixes, no behavior change."all"vs"organized", Jaccard 0, containment refused) is replaced by the CLI smoke path's own framework/bounded-system pair (function="govern"both, porous / semi_permeable,scale_range (0,100)vsscale 1), so the documented example now returnsTrueexactly asrules-system-bound --jsonreportscan_contain: true. Also fixes the stale line saying the command returnsstatus: ok— it returns"status": "runnable"..github/workflows/ci-python.ymlgains aLintstep (ruff check src tests) after tests, so the audit's acceptance criterion is enforced by CI instead of honor-system (ruff is already in the dev extras CI installs).Verification (local, base
830d2879)pytest tests -q: 30 passed (same count as the plan's baseline).ruff check src tests: clean, exit 0 (was 7 errors, all auto-fixable, exactly the plan's list).True.rules-system-bound --json:status: "runnable",can_contain: true,version: "0.1.0".ci-python.ymlparses; steps are checkout, setup-python, install, tests, Lint, smoke path.Note on the plan
The plan (posted 2026-11-17) predates the plan-status rule, so it carries no status paragraph; it is treated here as one take, not a solidified plan. Every load-bearing claim was re-verified against live source at build time and held; the only deviation is the count note above (ruff's
--fixrun reports 9 fixed items vs the 7 diagnostics — the extra two are theOptionalimport and blank-line removals shown in the diff). No rules change was made: the README example was aligned to the rules, per the plan's minimal-fix option.Merge
Draft PR. Merge is Anthony's call. CI verdict at the exact head is the batch's independent check.
Summary by Sourcery
Enforce clean linting in CI and align the README examples with the current CLI containment behavior.
Bug Fixes:
Enhancements:
CI:
Documentation: