🎨 Format Python code with Black
This commit is contained in:
parent
c46a9f95f4
commit
2df6241485
2 changed files with 10 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue