feat: use uv instead of poetry for CI, docker and development (#3325)

Co-authored-by: arcbtc <ben@arc.wales>
This commit is contained in:
dni ⚡ 2025-08-21 16:17:19 +02:00 committed by GitHub
parent 15984fa49b
commit 5ba06d42d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
88 changed files with 4265 additions and 1303 deletions

View file

@ -7,7 +7,6 @@ import argparse
import os
import sqlite3
import sys
from typing import Optional
from lnbits.settings import settings
@ -108,7 +107,7 @@ def insert_to_pg(query, data):
connection.close()
def migrate_core(file: str, exclude_tables: Optional[list[str]] = None):
def migrate_core(file: str, exclude_tables: list[str] | None = None):
if exclude_tables is None:
exclude_tables = []
print(f"Migrating core: {file}")
@ -124,7 +123,7 @@ def migrate_ext(file: str):
print(f"✅ Migrated ext: {schema}")
def migrate_db(file: str, schema: str, exclude_tables: Optional[list[str]] = None):
def migrate_db(file: str, schema: str, exclude_tables: list[str] | None = None):
# first we check if this file exists:
if exclude_tables is None:
exclude_tables = []