Skip to content

Commit 4cf0d81

Browse files
tbitcsoz-agent
andcommitted
fix: ruff lint — F541 f-string, 2x E501 line length in esdb commands
Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent a850bbc commit 4cf0d81

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

src/specsmith/cli.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8592,7 +8592,7 @@ def esdb_import_cmd(source: str, project_dir: str, as_json: bool) -> None:
85928592
console.print(
85938593
f"[green]\u2714[/green] Imported {len(reqs)} requirements, {len(tests)} test cases."
85948594
)
8595-
console.print(f" Wrote .specsmith/requirements.json and .specsmith/testcases.json")
8595+
console.print(" Wrote .specsmith/requirements.json and .specsmith/testcases.json")
85968596

85978597

85988598
@esdb_group.command(name="backup")
@@ -8639,7 +8639,12 @@ def esdb_backup_cmd(project_dir: str, backup_dir: str, as_json: bool) -> None:
86398639

86408640
@esdb_group.command(name="rollback")
86418641
@click.option("--project-dir", type=click.Path(exists=True), default=".")
8642-
@click.option("--steps", default=1, show_default=True, help="Number of backups to roll back (default: 1 = latest backup).")
8642+
@click.option(
8643+
"--steps",
8644+
default=1,
8645+
show_default=True,
8646+
help="Number of backups to roll back (1 = latest).",
8647+
)
86438648
@click.option("--json", "as_json", is_flag=True, default=False)
86448649
def esdb_rollback_cmd(project_dir: str, steps: int, as_json: bool) -> None:
86458650
"""Restore the ESDB from the most recent backup snapshot.
@@ -8654,7 +8659,10 @@ def esdb_rollback_cmd(project_dir: str, steps: int, as_json: bool) -> None:
86548659
root = Path(project_dir).resolve()
86558660
backups_dir = root / ".specsmith" / "backups"
86568661
if not backups_dir.is_dir():
8657-
result = {"ok": False, "error": "No backups directory found. Run `specsmith esdb backup` first."}
8662+
result = {
8663+
"ok": False,
8664+
"error": "No backups directory found. Run `specsmith esdb backup` first.",
8665+
}
86588666
if as_json:
86598667
click.echo(_json.dumps(result, indent=2))
86608668
else:

0 commit comments

Comments
 (0)