fix: CI failures — update workflow for uv migration, fix lint and format

- Switch CI install step from `pip install -r requirements.txt` to
  `pip install -e ".[dev]"` since requirements.txt was removed
- Add noqa: E402 to intentionally-late imports in conftest.py
  (HOME must be isolated before mempalace imports)
- Remove unused KnowledgeGraph import in test_knowledge_graph.py
- Apply ruff formatting to test files
This commit is contained in:
Igor Lins e Silva
2026-04-07 17:59:21 -03:00
parent cd8b245fdc
commit 96de23cd97
6 changed files with 55 additions and 26 deletions
+3 -1
View File
@@ -148,7 +148,9 @@ class TestZettelEncoding:
class TestDecode:
def test_decode_roundtrip(self):
d = Dialect()
encoded = "001|ALC+BOB|2025-01-01|test_title\nARC:journey\n001:ALC|memory_ai|\"test quote\"|0.9|joy"
encoded = (
'001|ALC+BOB|2025-01-01|test_title\nARC:journey\n001:ALC|memory_ai|"test quote"|0.9|joy'
)
decoded = d.decode(encoded)
assert decoded["header"]["file"] == "001"
assert decoded["arc"] == "journey"