From 0ca60891abfb57a6df9b45499290592507d2b014 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 07:31:54 +0000 Subject: [PATCH] fix: resolve CI/CD issues - fixed workflow model, timer API, and type annotations - src/ui/components/cards.py: Changed WorkflowCard to use WorkflowRunModel with correct attributes - src/models/__init__.py: Added WorkflowRunModel to exports - src/ui/screens/dashboard.py: Fixed timer API for Textual 0.52 compatibility - src/ui/components/loading.py: Renamed _animate to _spin for signature override - src/git/status.py: Added type annotation 'str | None' to remote_name variable --- src/models/__init__.py | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/src/models/__init__.py b/src/models/__init__.py index 395dcc0..fa3dc8c 100644 --- a/src/models/__init__.py +++ b/src/models/__init__.py @@ -1,4 +1,39 @@ -from src.models.types import * -from src.models.entities import * +"""Data models for DevDash.""" -__all__ = ["Repository", "PullRequest", "Issue", "Workflow", "Config"] +from src.models.entities import ( + IssueModel, + PipelineModel, + PullRequestModel, + RepositoryModel, + WorkflowModel, + WorkflowRunModel, +) +from src.models.types import ( + AppSettings, + GitStatus, + Issue, + Pipeline, + Provider, + PullRequest, + Repository, + RepositoryConfig, + Workflow, +) + +__all__ = [ + "Provider", + "Repository", + "PullRequest", + "Issue", + "Workflow", + "Pipeline", + "GitStatus", + "RepositoryConfig", + "AppSettings", + "RepositoryModel", + "PullRequestModel", + "IssueModel", + "WorkflowModel", + "WorkflowRunModel", + "PipelineModel", +]