Skip to content

Commit d513881

Browse files
Copilotmnriem
andcommitted
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>
1 parent a6ddbbf commit d513881

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/specify_cli/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,7 +1963,7 @@ def catalog_remove(
19631963

19641964
config_path = specify_dir / "extension-catalogs.yml"
19651965
if not config_path.exists():
1966-
console.print(f"[red]Error:[/red] No catalog config found. Nothing to remove.")
1966+
console.print("[red]Error:[/red] No catalog config found. Nothing to remove.")
19671967
raise typer.Exit(1)
19681968

19691969
try:
@@ -2261,8 +2261,8 @@ def extension_search(
22612261
else:
22622262
console.print(f"\n [yellow]⚠[/yellow] Not directly installable from '{catalog_name}'.")
22632263
console.print(
2264-
f" Add to an approved catalog with install_allowed: true, "
2265-
f"or use: specify extension add --from <url>"
2264+
" Add to an approved catalog with install_allowed: true, "
2265+
"or use: specify extension add --from <url>"
22662266
)
22672267
console.print()
22682268

0 commit comments

Comments
 (0)