Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 10, 2025
1 parent 5109b2a commit 8ca4ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def replace_license_badge(content: str, repo_license: Optional[dict[str, str]])
# shield.io uses -- as an escape character, so we need to replace - with --
license_name_upper = repo_license["key"].upper().replace("-", "--")
return content.replace(
"![MIT License]" "(https://img.shields.io/badge/license-MIT-blue.svg)]",
"![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)]",
f"![{license_name_upper} License]"
f"(https://img.shields.io/badge/license-{license_name_upper}-blue.svg)]",
)
Expand Down

0 comments on commit 8ca4ff5

Please sign in to comment.