fix: resolve CI linting and type errors
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
"""Init command for initializing prompt repositories."""
|
||||
|
||||
import click
|
||||
from pathlib import Path
|
||||
|
||||
from promptforge.core.git_manager import GitManager
|
||||
|
||||
|
||||
@@ -8,7 +11,10 @@ from promptforge.core.git_manager import GitManager
|
||||
@click.option("--force", is_flag=True, help="Force reinitialization")
|
||||
@click.pass_obj
|
||||
def init(ctx, directory: str, force: bool):
|
||||
"""Initialize a new PromptForge repository."""
|
||||
"""Initialize a new PromptForge repository.
|
||||
|
||||
Creates a prompts directory with git version control.
|
||||
"""
|
||||
prompts_dir = Path(directory) / "prompts"
|
||||
git_manager = GitManager(prompts_dir)
|
||||
|
||||
@@ -26,4 +32,4 @@ def init(ctx, directory: str, force: bool):
|
||||
click.echo(f"Initialized PromptForge in {prompts_dir}")
|
||||
except Exception as e:
|
||||
click.echo(f"Error: {e}", err=True)
|
||||
raise click.Abort()
|
||||
raise click.Abort()
|
||||
|
||||
Reference in New Issue
Block a user