diff --git a/.claude/hooks/.diagnostics_state.json b/.claude/hooks/.diagnostics_state.json new file mode 100644 index 00000000..895ee7a4 --- /dev/null +++ b/.claude/hooks/.diagnostics_state.json @@ -0,0 +1 @@ +{"file": "/home/patrick/Projects/AIPass/src/aipass/seedgo/apps/modules/checklist.py", "errors": [{"line": 393, "message": "E501: Line too long (122 > 120)"}]} \ No newline at end of file diff --git a/src/aipass/seedgo/apps/modules/checklist.py b/src/aipass/seedgo/apps/modules/checklist.py index 807b9e9a..5974093a 100644 --- a/src/aipass/seedgo/apps/modules/checklist.py +++ b/src/aipass/seedgo/apps/modules/checklist.py @@ -183,8 +183,6 @@ def _resolve_pack_path(pack_name: str) -> Optional[Path]: def _load_bypass_for_file(file_path: str) -> list: """Load bypass rules for the branch containing file_path.""" - from aipass.seedgo.apps.handlers.bypass.bypass_handler import REGISTRY_PATH - branch = get_branch_from_path(file_path) if branch is None: return [] @@ -193,7 +191,10 @@ def _load_bypass_for_file(file_path: str) -> list: return [] bp = Path(raw_path) if not bp.is_absolute(): - bp = (REGISTRY_PATH.parent / bp).resolve() + from aipass.seedgo.apps.handlers.bypass.bypass_handler import _find_registry + + registry_path = _find_registry() + bp = (registry_path.parent / bp).resolve() return load_bypass_rules(str(bp))