Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankjobanputra committed Aug 29, 2024
1 parent 6ccd242 commit bf43977
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
16 changes: 10 additions & 6 deletions src/banks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
3 changes: 1 addition & 2 deletions tests/test_directory_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

0 comments on commit bf43977

Please sign in to comment.