Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Dec 8, 2024
1 parent 801a53b commit 2fdb4b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/llmling/config/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def save(

content = self.config.model_dump(exclude_none=True)
string = yamling.dump_yaml(content)
UPath(path).write_text(string)
_ = UPath(path).write_text(string)
logger.info("Configuration saved to %s", path)

except Exception as exc:
Expand Down Expand Up @@ -140,7 +140,7 @@ def validate_or_raise(self) -> None:

def _validate_prompts(self) -> list[str]:
"""Validate prompt configuration."""
warnings = []
warnings: list[str] = []
for name, prompt in self.config.prompts.items():
match prompt:
case StaticPrompt():
Expand All @@ -153,7 +153,7 @@ def _validate_prompts(self) -> list[str]:
# Try to import the module
try:
module_name = prompt.import_path.split(".")[0]
importlib.import_module(module_name)
_ = importlib.import_module(module_name)
except ImportError:
path = prompt.import_path
msg = f"Cannot import module for prompt {name}: {path}"
Expand Down

0 comments on commit 2fdb4b4

Please sign in to comment.