Skip to content

Commit

Permalink
Format with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
candleindark committed Jan 27, 2024
1 parent 28d6fa6 commit e0f7849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dandiapi/api/services/version/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def _normalize_version_metadata(
}
# Run the version_metadata through the pydantic model to automatically include any boilerplate
# like the access or repository fields
return PydanticDandiset.model_construct(
**version_metadata
).model_dump(mode='json',exclude_none=True)
return PydanticDandiset.model_construct(**version_metadata).model_dump(
mode='json', exclude_none=True
)
2 changes: 1 addition & 1 deletion dandiapi/api/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def test_validate_version_metadata_no_assets(
{
'field': 'assetsSummary',
'message': 'Value error, '
'A Dandiset containing no files or zero bytes is not publishable',
'A Dandiset containing no files or zero bytes is not publishable',
}
]

Expand Down

0 comments on commit e0f7849

Please sign in to comment.