From e0f7849b3fd5334b9c127ef863f20753cd8699f7 Mon Sep 17 00:00:00 2001 From: Isaac To Date: Fri, 26 Jan 2024 16:56:22 -0800 Subject: [PATCH] Format with `ruff` --- dandiapi/api/services/version/metadata.py | 6 +++--- dandiapi/api/tests/test_tasks.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dandiapi/api/services/version/metadata.py b/dandiapi/api/services/version/metadata.py index 125b5c5f2..bc04c8114 100644 --- a/dandiapi/api/services/version/metadata.py +++ b/dandiapi/api/services/version/metadata.py @@ -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 + ) diff --git a/dandiapi/api/tests/test_tasks.py b/dandiapi/api/tests/test_tasks.py index 1cdb5323f..76114bea4 100644 --- a/dandiapi/api/tests/test_tasks.py +++ b/dandiapi/api/tests/test_tasks.py @@ -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', } ]