From 7c6ae664f5e5d7af208534b6c9e29b910e47ff8d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 23 Sep 2025 17:30:53 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy_docs_status.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/deploy_docs_status.py b/scripts/deploy_docs_status.py index c16dd4503..26727e506 100644 --- a/scripts/deploy_docs_status.py +++ b/scripts/deploy_docs_status.py @@ -22,7 +22,7 @@ from pydantic_settings import BaseSettings class Settings(BaseSettings): """ Configuration settings for the documentation deployment bot. - + Attributes: github_repository: The GitHub repository in format 'owner/repo' github_token: GitHub token with permissions to update statuses and comments @@ -31,6 +31,7 @@ class Settings(BaseSettings): run_id: The GitHub Actions run ID for linking back to the workflow is_done: Boolean indicating if the deployment process is complete """ + github_repository: str github_token: SecretStr deploy_url: str | None = None @@ -42,12 +43,13 @@ class Settings(BaseSettings): class LinkData(BaseModel): """ Represents link information for modified documentation pages. - + Attributes: previous_link: URL to the live/production version of the page preview_link: URL to the preview/deployed version of the page en_link: URL to the English version of the page (for non-English pages) """ + previous_link: str preview_link: str en_link: str | None = None @@ -56,7 +58,7 @@ class LinkData(BaseModel): def main() -> None: """ Main function that orchestrates the documentation deployment status workflow. - + The function: 1. Sets up logging and configuration 2. Finds the PR associated with the commit