mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-09 19:27:45 +02:00
[eric] linter: collapse the dangling-refs comments to one line each
This commit is contained in:
@@ -56,8 +56,7 @@ ENTITY_STORES: List[EntityStore] = [
|
||||
EntityStore(kind=EntityKind.SESSION, module="backend.apps.agents.manager.session.session_store", lookup="load_session_data"),
|
||||
EntityStore(kind=EntityKind.DASHBOARD, module="backend.apps.dashboards.dashboards", lookup="load"),
|
||||
EntityStore(kind=EntityKind.WORKFLOW, module="backend.apps.workflows.storage", lookup="get_workflow"),
|
||||
# No get_run(run_id) exists; a run is found by scanning the listing, which is why a stale
|
||||
# last_run_id reads as "no run" rather than as an error.
|
||||
# No get_run(run_id) exists, so a run is found by scanning the listing; a stale last_run_id just reads as "no run".
|
||||
EntityStore(kind=EntityKind.WORKFLOW_RUN, module="backend.apps.workflows.storage", lookup="list_all_runs"),
|
||||
EntityStore(kind=EntityKind.OUTPUT, module="backend.apps.outputs.workspace_io", lookup="load_output"),
|
||||
# A workspace is a folder on disk, not a record, so its only by-id lookup is the read route.
|
||||
|
||||
+1
-2
@@ -115,8 +115,7 @@ def run_checks(root: Path) -> tuple[list[str], list[str], list[str], list[str],
|
||||
underscore_errors = run_underscore_check(root, exceptions, excludes, ignores) if enabled.get("no-underscore-names", False) else []
|
||||
p_private_errors = run_p_private_check(root, exceptions, excludes, ignores) if enabled.get("p-private", False) else []
|
||||
|
||||
# Cross-entity id fields must name the entity they point at, so a dangling reference is a
|
||||
# linter error at declaration time instead of a blank card six months later.
|
||||
# A dangling reference becomes a linter error at declaration time, not a blank card six months later.
|
||||
dangling_ref_errors: list[str] = []
|
||||
if enabled.get("dangling-refs", False):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user