From 48326c6335c246d8bc00bfef7f9bd626bcde9657 Mon Sep 17 00:00:00 2001 From: Austin Godber Date: Wed, 13 Aug 2025 20:39:53 -0700 Subject: [PATCH] fix linting and other ci errors --- .gitea/workflows/security.yml | 2 +- src/embeddingbuddy/data/parser.py | 4 ++-- src/embeddingbuddy/models/reducers.py | 1 - src/embeddingbuddy/models/schemas.py | 2 +- src/embeddingbuddy/ui/callbacks/data_processing.py | 1 - 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/security.yml b/.gitea/workflows/security.yml index 438d782..53f5124 100644 --- a/.gitea/workflows/security.yml +++ b/.gitea/workflows/security.yml @@ -37,7 +37,7 @@ jobs: continue-on-error: true - name: Run safety vulnerability check - run: uv run safety check --json --output safety-report.json + run: uv run safety check --json --save-json safety-report.json continue-on-error: true - name: Upload security reports diff --git a/src/embeddingbuddy/data/parser.py b/src/embeddingbuddy/data/parser.py index 0b564a2..af241cb 100644 --- a/src/embeddingbuddy/data/parser.py +++ b/src/embeddingbuddy/data/parser.py @@ -1,8 +1,8 @@ import json import uuid import base64 -from typing import List, Union -from ..models.schemas import Document, ProcessedData +from typing import List +from ..models.schemas import Document class NDJSONParser: diff --git a/src/embeddingbuddy/models/reducers.py b/src/embeddingbuddy/models/reducers.py index 3cac2f6..bbfcd05 100644 --- a/src/embeddingbuddy/models/reducers.py +++ b/src/embeddingbuddy/models/reducers.py @@ -1,6 +1,5 @@ from abc import ABC, abstractmethod import numpy as np -from typing import Optional, Tuple from sklearn.decomposition import PCA import umap from openTSNE import TSNE diff --git a/src/embeddingbuddy/models/schemas.py b/src/embeddingbuddy/models/schemas.py index a6cc14e..36f9089 100644 --- a/src/embeddingbuddy/models/schemas.py +++ b/src/embeddingbuddy/models/schemas.py @@ -1,4 +1,4 @@ -from typing import List, Optional, Any, Dict +from typing import List, Optional from dataclasses import dataclass import numpy as np diff --git a/src/embeddingbuddy/ui/callbacks/data_processing.py b/src/embeddingbuddy/ui/callbacks/data_processing.py index 7060158..09f7e47 100644 --- a/src/embeddingbuddy/ui/callbacks/data_processing.py +++ b/src/embeddingbuddy/ui/callbacks/data_processing.py @@ -1,4 +1,3 @@ -import numpy as np from dash import callback, Input, Output, State from ...data.processor import DataProcessor