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

@ -1,5 +1,4 @@
import importlib
from typing import Optional
from unittest.mock import AsyncMock, Mock
import pytest
@ -167,7 +166,7 @@ def _mock_field(field):
return response
def _eval_dict(data: Optional[dict]) -> Optional[dict]:
def _eval_dict(data: dict | None) -> dict | None:
fn_prefix = "__eval__:"
if not data:
return data
@ -190,7 +189,7 @@ def _eval_dict(data: Optional[dict]) -> Optional[dict]:
return d
def _dict_to_object(data: Optional[dict]) -> Optional[DataObject]:
def _dict_to_object(data: dict | None) -> DataObject | None:
if not data:
return None
# if isinstance(data, list):
@ -213,7 +212,7 @@ def _data_mock(data: dict) -> Mock:
return Mock(return_value=_dict_to_object(data))
def _raise(error: Optional[dict]):
def _raise(error: dict | None):
if not error:
return Exception()
data = error["data"] if "data" in error else None