- Implemented SoundRepository for database operations related to sounds, including methods for retrieving, creating, updating, and deleting sound records. - Developed SoundScannerService to scan directories for audio files, calculate their metadata, and synchronize with the database. - Added support for various audio file formats and integrated ffmpeg for audio duration extraction. - Created comprehensive tests for sound API endpoints and sound scanner service to ensure functionality and error handling. - Updated dependencies to include ffmpeg-python for audio processing.
51 lines
1.0 KiB
TOML
51 lines
1.0 KiB
TOML
[project]
|
|
name = "backend"
|
|
version = "0.1.0"
|
|
description = "Add your description here"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"aiosqlite==0.21.0",
|
|
"bcrypt==4.3.0",
|
|
"email-validator==2.2.0",
|
|
"fastapi[standard]==0.116.1",
|
|
"ffmpeg-python==0.2.0",
|
|
"httpx==0.28.1",
|
|
"pydantic-settings==2.10.1",
|
|
"pyjwt==2.10.1",
|
|
"python-socketio>=5.13.0",
|
|
"sqlmodel==0.0.24",
|
|
"uvicorn[standard]==0.35.0",
|
|
]
|
|
|
|
[tool.uv]
|
|
dev-dependencies = [
|
|
"coverage==7.10.0",
|
|
"faker==37.4.2",
|
|
"httpx==0.28.1",
|
|
"mypy==1.17.0",
|
|
"pytest==8.4.1",
|
|
"pytest-asyncio==1.1.0",
|
|
"ruff==0.12.5",
|
|
]
|
|
|
|
[tool.mypy]
|
|
strict = true
|
|
exclude = ["venv", ".venv", "alembic"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
exclude = ["alembic"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["ALL"]
|
|
ignore = ["D100", "D103", "TRY301"]
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
"tests/**/*.py" = ["S101", "S105"]
|
|
|
|
[tool.pytest.ini_options]
|
|
filterwarnings = [
|
|
"ignore:transaction already deassociated from connection:sqlalchemy.exc.SAWarning",
|
|
]
|