feat(system): fix(seedgo): resolve REGISTRY_PATH type error in checklist.py — use _find_registry() instead of removed constant

Co-Authored-By: @devpulse <devpulse@aipass>
This commit is contained in:
AIOSAI
2026-04-23 01:20:19 -07:00
co-authored by @devpulse
parent 26b8822336
commit e6244a4560
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -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)"}]}
+4 -3
View File
@@ -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))