personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix pre-existing ruff lint errors

- Remove unused `canonical_id` assignment in bootstrap.py
- Rename ambiguous variable `l` to `label` in test_merge_names.py
- Add `is_name_variant_match` to entities __all__ export list

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+2 -3
-2
apps/speakers/bootstrap.py
··· 726 726 # Determine canonical (longer name) vs alias (shorter name) 727 727 if len(name_a) >= len(name_b): 728 728 canonical_name, alias_name = name_a, name_b 729 - canonical_id = eid 730 729 else: 731 730 canonical_name, alias_name = name_b, name_a 732 - canonical_id = other_id 733 731 734 732 # Check name variant pattern: first-word, token-subset, or prefix-token 735 733 if not is_name_variant_match(alias_name, canonical_name):
+1 -1
apps/speakers/tests/test_merge_names.py
··· 132 132 ) 133 133 with open(labels_path) as f: 134 134 labels = json.load(f) 135 - speakers = [l["speaker"] for l in labels["labels"]] 135 + speakers = [label["speaker"] for label in labels["labels"]] 136 136 assert "alice_alias" not in speakers 137 137 assert speakers.count("alice_canonical") == 3 138 138
+1
think/entities/__init__.py
··· 157 157 "build_name_resolution_map", 158 158 "find_entity_by_email", 159 159 "find_matching_entity", 160 + "is_name_variant_match", 160 161 "resolve_entity", 161 162 "validate_aka_uniqueness", 162 163 # Activity