diff --git a/scripts/reekeerBot.py b/scripts/reekeerBot.py index e68db26..cbb2bf4 100644 --- a/scripts/reekeerBot.py +++ b/scripts/reekeerBot.py @@ -93,7 +93,9 @@ def create_jwt(*, app_id: int, private_key_path: Path) -> str: # PyJWT expects "iss" to be a string. "iss": str(app_id), } - return jwt.encode(payload, private_key, algorithm="RS256") # pyright: ignore[reportUnknownMemberType] + return jwt.encode( + payload, private_key, algorithm="RS256" + ) # pyright: ignore[reportUnknownMemberType] def installation_token(config: Config) -> str: @@ -166,7 +168,7 @@ def _cleanup_artifacts() -> None: check=False, quiet=True, ) - + def ruff_fix() -> list[dict[str, Any]]: run_shell("ruff check . --fix", check=False, quiet=True) @@ -416,13 +418,13 @@ def main() -> None: branch = create_branch() _cleanup_artifacts() - + ruff = ruff_fix() black_fix() pyright = pyright_scan() _cleanup_artifacts() - + push(token=token, repo=config.repo, branch=branch) pr = create_pr(token=token, repo=config.repo, branch=branch, base_branch=config.base_branch)