Refactor logistics and frontend code for better consistency.

Refactored several files to improve code clarity, error handling, and data integrity. Introduced type safety improvements, streamlined OpenAPI model integration, adjusted configuration settings, and enhanced QR code handling logic. Also updated scripts and tsconfig settings to temporarily bypass strict checks during development.
This commit is contained in:
GotthardG
2025-03-06 13:24:12 +01:00
parent 9c73e1df4c
commit 3d55c42312
9 changed files with 196 additions and 56 deletions

37
backend/pyproject.toml Normal file
View File

@ -0,0 +1,37 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "aareDB"
version = "0.1.0a24"
description = "Backend for next gen sample management system"
authors = [{name = "Guillaume Gotthard", email = "guillaume.gotthard@psi.ch"}]
license = {text = "MIT"}
dependencies = [
"SQLAlchemy~=2.0.36",
"fastapi~=0.115.4",
"pydantic~=2.9.2",
"openpyxl~=3.1.5",
"typing_extensions~=4.12.2",
"PyJWT~=2.8.0",
"qrcode~=7.3.1",
"pillow~=10.4.0",
"reportlab~=4.2.5",
"cryptography~=44.0.0",
"pytest~=7.4.1",
"pytest-cov~=4.1.0",
"httpx~=0.24.1",
"pydantic[email]",
"mysqlclient~=2.1.1",
"python-multipart~=0.0.6",
"uvicorn==0.23.1",
"python-dateutil~=2.8.2",
"tomli>=2.0.1",
"python-dotenv"
]
[tool.pytest.ini_options]
norecursedirs = ["backend/python-client"]
# Or limit files explicitly
python_files = ["test_auth.py"]#,
#"test_contact.py"]