mirror of
https://github.com/github/spec-kit.git
synced 2026-03-17 02:43:08 +00:00
fix: remove extraneous f-string prefixes (ruff F541)
Remove f-prefix from strings with no placeholders in catalog_remove and extension_search commands. Co-authored-by: mnriem <15701806+mnriem@users.noreply.github.com>
This commit is contained in:
committed by
Manfred Riem
parent
5c77268136
commit
9a82f098e8
@@ -1970,7 +1970,7 @@ def catalog_remove(
|
|||||||
|
|
||||||
config_path = specify_dir / "extension-catalogs.yml"
|
config_path = specify_dir / "extension-catalogs.yml"
|
||||||
if not config_path.exists():
|
if not config_path.exists():
|
||||||
console.print(f"[red]Error:[/red] No catalog config found. Nothing to remove.")
|
console.print("[red]Error:[/red] No catalog config found. Nothing to remove.")
|
||||||
raise typer.Exit(1)
|
raise typer.Exit(1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -2268,8 +2268,8 @@ def extension_search(
|
|||||||
else:
|
else:
|
||||||
console.print(f"\n [yellow]⚠[/yellow] Not directly installable from '{catalog_name}'.")
|
console.print(f"\n [yellow]⚠[/yellow] Not directly installable from '{catalog_name}'.")
|
||||||
console.print(
|
console.print(
|
||||||
f" Add to an approved catalog with install_allowed: true, "
|
" Add to an approved catalog with install_allowed: true, "
|
||||||
f"or use: specify extension add --from <url>"
|
"or use: specify extension add --from <url>"
|
||||||
)
|
)
|
||||||
console.print()
|
console.print()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user