From 54681ab29d16538dd18cf5e37708c838c60f9454 Mon Sep 17 00:00:00 2001 From: Mayank Jobanputra Date: Fri, 30 Aug 2024 00:15:44 +0200 Subject: [PATCH] fix more lint issues --- src/banks/registries/directory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/banks/registries/directory.py b/src/banks/registries/directory.py index 9e60235..589a084 100644 --- a/src/banks/registries/directory.py +++ b/src/banks/registries/directory.py @@ -81,13 +81,13 @@ def set_meta(self, *, meta: dict, name: str, version: str | None = None, overwri self._meta_path.mkdir() if Path(self._path / f"{name}.{version}.jinja") not in [pf.path for pf in self._index.files]: raise ValueError( - f"Prompt {name}.{version}.jinja not found in the index. " f"Cannot set meta for a non-existing prompt." + f"Prompt {name}.{version}.jinja not found in the index. Cannot set meta for a non-existing prompt." ) if f"{name}:{version}.json" in self._meta_path.glob("*.json"): if not overwrite: raise ValueError( - f"Meta file for prompt {name}:{version} already exists. " f"Use overwrite=True to overwrite." + f"Meta file for prompt {name}:{version} already exists. Use overwrite=True to overwrite." ) meta_path = self._meta_path / f"{name}.{version}.json" meta_path.write_text(json.dumps(meta))