Skip to content

Commit

Permalink
🎨 Format Python code with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar authored and OniriCorpe committed May 28, 2024
1 parent f98ab2c commit 4263b82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tools/readme_generator/regen_readme_in_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

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()

Expand Down
8 changes: 7 additions & 1 deletion tools/readme_generator/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@

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
Expand Down

0 comments on commit 4263b82

Please sign in to comment.