Skip to content

feat: add python-architecture-review skill with Cosmic Python guards - #5

Merged
azaharizaman merged 12 commits into
mainfrom
feat/python-architecture-review
Oct 9, 2026
Merged

azaharizaman merged 12 commits into
mainfrom
feat/python-architecture-review

Conversation

@azaharizaman

Copy link
Copy Markdown
Contributor

Adds the read-only python-architecture-review skill (Cosmic Python seams, complexity gate, target proposals, enforceable guards) with a stdlib-only scan_architecture.py scanner, three references, eval fixtures, and quality/structural contract coverage.

Includes review-driven scanner corrections: literal-session receivers with add, path-part handling for top-level/relative layouts, bare/mocker/multiline/.object mock coverage with dotted-call exclusion, advisory-to-Minor mapping docs, and regression tests.

Verification: full suite 580 passed, ruff clean, agentskills validate clean, git diff --check clean.

…dling

Scope session-outside-uow to literal session receivers (session,
self.session, db.session), include add, and name the actual receiver
in evidence instead of flagging any .commit()/.query(). Handle
top-level and relative domain, unit_of_work, and adapters paths via
path parts. Cover bare patch, mocker.patch, multiline calls, and the
.patch.object spelling while excluding dotted calls. Document the
scanner advisory to report Minor mapping and fix the start-of-line
docs grep. Add regression tests.
@sourcery-ai

sourcery-ai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Sorry @azaharizaman, your pull request is larger than the review limit of 150,000 diff characters

@azaharizaman
azaharizaman merged commit 97692d8 into main Oct 9, 2026
6 checks passed
@azaharizaman
azaharizaman deleted the feat/python-architecture-review branch October 9, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant