mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
🎨 Format Python code with Black
This commit is contained in:
parent
f98ab2c963
commit
4263b82c54
2 changed files with 10 additions and 2 deletions
|
@ -13,7 +13,9 @@ from pathlib import Path
|
||||||
|
|
||||||
TOOLS_DIR = Path(__file__).resolve().parent.parent
|
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()
|
login = (TOOLS_DIR / ".github_login").open("r", encoding="utf-8").read().strip()
|
||||||
token = (TOOLS_DIR / ".github_token").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__)
|
app = Sanic(__name__)
|
||||||
|
|
||||||
|
|
||||||
@cache
|
@cache
|
||||||
def github_webhook_secret() -> str:
|
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
|
@cache
|
||||||
|
|
Loading…
Add table
Reference in a new issue