1
0
Fork 0

🎨 Format Python code with Black

This commit is contained in:
Salamandar 2024-05-28 17:11:13 +00:00 committed by OniriCorpe
parent c46a9f95f4
commit 2df6241485
2 changed files with 10 additions and 2 deletions

View file

@ -13,7 +13,9 @@ from pathlib import Path
TOOLS_DIR = Path(__file__).resolve().parent.parent
secret = (TOOLS_DIR / ".github_webhook_secret").open("r", encoding="utf-8").read().strip()
secret = (
(TOOLS_DIR / ".github_webhook_secret").open("r", encoding="utf-8").read().strip()
)
login = (TOOLS_DIR / ".github_login").open("r", encoding="utf-8").read().strip()
token = (TOOLS_DIR / ".github_token").open("r", encoding="utf-8").read().strip()

View file

@ -15,9 +15,15 @@ TOOLS_DIR = Path(__file__).resolve().parent.parent
app = Sanic(__name__)
@cache
def github_webhook_secret() -> str:
return (TOOLS_DIR / ".github_webhook_secret").open("r", encoding="utf-8").read().strip()
return (
(TOOLS_DIR / ".github_webhook_secret")
.open("r", encoding="utf-8")
.read()
.strip()
)
@cache