fix
BREAKING
task/invariants-load-rules-repo-root
#1 / 1
fix: add repo_root param to load_invariant_rules; delete _DEFAULT_RULES_FILE
load_invariant_rules now takes repo_root as its first positional argument and computes the default path via code_invariants_path(repo_root), eliminating the bare-relative-path construction pathlib.Path('.muse/code_invariants.toml').
_DEFAULT_RULES_FILE constant deleted. CodeChecker.check already held repo_root so it now threads it through. callers in code_check.py and invariants.py updated; invariants.py also deletes its own _RULES_FILE constant and inlines the string literal in the user-facing message.
Tests written first (TDD): four failing tests in TestLoadInvariantRules that cover no-file defaults, explicit default path resolution, explicit missing path, and explicit TOML file loading — all now pass.
sha256:c0a78b6e29c171e5b934687e207afadfd60a77ff1abf2b92c26eb8bf06f0153f
sha
sha256:2b938d645d804c5a6866f06dee2f473023be04080602c610fa37353aec8c72cc
snapshot
← Older
Oldest on task/invariants-load-rules-repo-root
All commits
Newer →
Latest on task/invariants-load-rules-repo-root
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:c0a78b6e29c171e5b934687e207afadfd60a77ff1abf2b92c26eb8bf06f0153f --body "your comment"
No comments yet. Be the first to start the discussion.