tooling: add gen_type_contracts.py and regenerate type-contracts.md
Copy AST-based type contract generator from muse/tools/ into musehub/tools/. Run it to produce docs/reference/type-contracts.md from live source (314 types: 5 Enums, 47 TypedDicts, 215 Pydantic Models, 43 ORM Models, 4 Protocols).
The generator is self-contained — no external deps beyond stdlib ast. Run: python3 tools/gen_type_contracts.py --repo . --dirs musehub/ tests/ CI check: python3 tools/gen_type_contracts.py --check
sha256:7415b278906587d150233f06c69d5040dec0fc33140b72ccad39dc02ebc3f286
sha
sha256:18a183a0f7e4f3f9b2bf9ae61bea01fe8395d6a9c9a00f1897157abda5125a7a
snapshot
Older
fix: typing audit — zero violations across all test files
sha256:ca71d97bba51f0af457c8c984011b1d2f40c422e31112ad7286fc9d4f0121d72
All commits
Newer
refactor: eliminate all 135→0 typing violations across musehub/
sha256:8c824ed6d1671e31c24f56fa2f509d167f1faf16b9f3fd454eadbbaf5e93757a
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:7415b278906587d150233f06c69d5040dec0fc33140b72ccad39dc02ebc3f286 --body "your comment"
No comments yet. Be the first to start the discussion.