Fixing build

This commit is contained in:
Mistral Vibe
2026-04-10 10:23:32 +02:00
parent 6f77bb8c42
commit 411414b9c1
35 changed files with 141 additions and 134 deletions

View File

@@ -35,6 +35,18 @@ packages = ["src/worker"]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
src = ["src"]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = ["F401", "F841", "SIM102", "SIM211", "UP045", "E501", "UP017"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F401", "F841", "SIM102", "SIM211", "UP017", "I001", "B017", "SIM117"]
[dependency-groups]
dev = [
"ruff>=0.15.8",

View File

@@ -1,4 +1,5 @@
from functools import lru_cache
from pydantic_settings import BaseSettings, SettingsConfigDict

View File

@@ -6,7 +6,7 @@ import uuid
from datetime import datetime
from typing import Optional
from sqlalchemy import BigInteger, Boolean, DateTime, ForeignKey, Integer, Numeric, String, Text, func
from sqlalchemy import BigInteger, DateTime, Integer, Numeric, String, Text, func
from sqlalchemy.dialects.postgresql import ARRAY, JSONB, UUID
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column

View File

@@ -13,7 +13,7 @@ from pathlib import Path
import librosa
import numpy as np
import redis.asyncio as aioredis
from sqlalchemy import select, update
from sqlalchemy import update
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine
from worker.config import get_settings

View File

@@ -27,6 +27,7 @@ async def run_full_analysis(
fields: dict[str, Any] = {**bpm_result.fields, **key_result.fields}
from sqlalchemy import update
from worker.db import AudioVersionModel
global_bpm = fields.get("bpm")

View File

@@ -5,10 +5,6 @@ from __future__ import annotations
import asyncio
import json
import os
import shutil
import subprocess
import tempfile
from pathlib import Path
async def transcode_to_hls(input_path: str, output_dir: str) -> str: