Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsantiago committed Oct 9, 2024
1 parent 80692db commit bed7a31
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions back/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies = [
"alembic>=1.13.2",
"bcrypt==4.0.1",
"colorama>=0.4.6",
"setuptools>=75.1.0",
]
requires-python = ">=3.11"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion back/src/whombat/api/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def to_soundevent(
The soundevent feature object.
"""
return data.Feature(
name=feature.name,
term=data.term_from_key(feature.name),
value=feature.value,
)

Expand Down
1 change: 1 addition & 0 deletions back/src/whombat/api/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def to_soundevent(
email=user.email,
username=user.username,
name=user.name,
institution=None,
)

return data.Note(
Expand Down
2 changes: 1 addition & 1 deletion back/src/whombat/api/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def to_soundevent(
The soundevent tag object.
"""
return data.Tag(
key=tag.key,
term=data.term_from_key(tag.key),
value=tag.value,
)

Expand Down
1 change: 1 addition & 0 deletions back/src/whombat/api/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def to_soundevent(
username=obj.username,
email=obj.email,
name=obj.name,
institution=None,
)

def _get_pk_condition(self, pk: UUID):
Expand Down
2 changes: 1 addition & 1 deletion back/src/whombat/routes/dependencies/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


async def get_user_db(session: Session) -> AsyncGenerator[UserDatabase, None]:
"""Get the user database.""" ""
"""Get the user database."""
yield UserDatabase(session, models.User)


Expand Down
3 changes: 2 additions & 1 deletion back/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common fixtures for Whombat tests.""" ""
"""Common fixtures for Whombat tests."""

import logging
import os
import random
Expand Down
2 changes: 1 addition & 1 deletion back/tests/test_api/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def test_dataset_is_stored_with_relative_audio_dir(
session: AsyncSession,
audio_dir: Path,
):
"""Test that a dataset is stored with a relative audio dir.""" ""
"""Test that a dataset is stored with a relative audio dir."""
dataset_audio_dir = audio_dir / "dataset_audio_dir"
dataset_audio_dir.mkdir()
dataset = await api.datasets.create(
Expand Down
11 changes: 11 additions & 0 deletions back/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bed7a31

Please sign in to comment.