chore: add pre-commit

This commit is contained in:
2024-08-04 19:02:10 +01:00
parent ed973162b6
commit 14d7cecc55
12 changed files with 107 additions and 31 deletions

View File

@ -1,6 +1,5 @@
import requests
CHAR_REPLACEMENTS: list = [
["_", "__"],
["-", "--"],
@ -56,5 +55,7 @@ def generate_api_url(template: str, top_str: str, btm_str: str) -> str:
top_str = format_meme_string(top_str)
btm_str = format_meme_string(btm_str)
url: str = f"https://api.memegen.link/images/{tmpl_name}/{top_str}/{btm_str}.{tmpl_ext}"
url: str = (
f"https://api.memegen.link/images/{tmpl_name}/{top_str}/{btm_str}.{tmpl_ext}"
)
return url