From bf43977caea4f147ca656a5abb0fefba8d20da44 Mon Sep 17 00:00:00 2001 From: Mayank Jobanputra Date: Fri, 30 Aug 2024 00:02:47 +0200 Subject: [PATCH] fix lint issues --- src/banks/__init__.py | 16 ++++++++++------ tests/test_directory_registry.py | 3 +-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/banks/__init__.py b/src/banks/__init__.py index 3531c29..6e3d58a 100644 --- a/src/banks/__init__.py +++ b/src/banks/__init__.py @@ -5,14 +5,18 @@ from .env import env from .prompt import AsyncPrompt, Prompt +# Constants +DEFAULT_VERSION = "0" +INDEX_NAME = "index.json" +META_PATH = "meta" + + __all__ = ( "env", "Prompt", "AsyncPrompt", "config", -) - -# Constants -DEFAULT_VERSION = "0" -INDEX_NAME = "index.json" -META_PATH = "meta" + "DEFAULT_VERSION", + "INDEX_NAME", + "META_PATH", +) \ No newline at end of file diff --git a/tests/test_directory_registry.py b/tests/test_directory_registry.py index cfe10b7..22aff79 100644 --- a/tests/test_directory_registry.py +++ b/tests/test_directory_registry.py @@ -33,7 +33,7 @@ def test_init_from_existing_index(populated_dir): def test_init_from_existing_index_force(populated_dir): - r = DirectoryTemplateRegistry(populated_dir) # creates the index + _ = DirectoryTemplateRegistry(populated_dir) # creates the index # change the directory structure f = populated_dir / "blog.jinja" os.remove(f) @@ -92,4 +92,3 @@ def test_set_meta(populated_dir): assert r.get_meta(name="new", version="3") == {"accuracy": 91.2, "last_updated": time.ctime()} with pytest.raises(ValueError): r.set_meta(name="foo", version="bar", meta={"accuracy": 91.2, "last_updated": time.ctime()}, overwrite=False) -