From d7acd131e84eeff3a2fdcfbb1d233d0381dbffe6 Mon Sep 17 00:00:00 2001 From: Jacob Nesbitt Date: Mon, 6 Feb 2023 11:51:46 -0500 Subject: [PATCH] Upgrade black to 23.1.0 --- dandiapi/api/migrations/0001_initial.py | 1 - dandiapi/api/migrations/0002_unique_asset_blob_etag_size.py | 1 - dandiapi/api/migrations/0003_rename_uuids.py | 1 - dandiapi/api/migrations/0004_generic_multipart_upload_id.py | 1 - dandiapi/api/migrations/0005_version_doi.py | 1 - dandiapi/api/migrations/0006_default_oauth_application.py | 1 - dandiapi/api/migrations/0007_validation_status.py | 1 - dandiapi/api/migrations/0008_version_validation_status.py | 1 - dandiapi/api/migrations/0009_asset_published.py | 1 - dandiapi/api/migrations/0010_blank_validation_errors.py | 1 - dandiapi/api/migrations/0012_merge_20210630_1354.py | 1 - dandiapi/api/migrations/0013_add_published_status.py | 1 - .../0014_alter_stagingapplication_skip_authorization.py | 1 - dandiapi/api/migrations/0015_validation_fields.py | 1 - dandiapi/api/migrations/0016_remove_metadata_tables.py | 1 - dandiapi/api/migrations/0017_alter_version_version.py | 1 - dandiapi/api/migrations/0018_alter_validation_errors.py | 1 - dandiapi/api/migrations/0019_usermetadata.py | 1 - dandiapi/api/migrations/0020_zarr.py | 1 - dandiapi/api/migrations/0021_embargo_models.py | 1 - .../0022_upload_dandiset_alter_stagingapplication_user.py | 1 - dandiapi/api/migrations/0023_embargoedzarrarchive.py | 1 - dandiapi/api/migrations/0024_biginteger_zarrarchives.py | 1 - dandiapi/api/migrations/0025_zarrarchive_dandiset.py | 1 - ..._asset_id_alter_assetblob_id_alter_dandiset_id_and_more.py | 1 - .../0027_embargoedzarrarchive_status_zarrarchive_status.py | 1 - dandiapi/api/migrations/0028_alter_asset_previous.py | 1 - dandiapi/api/migrations/0029_alter_usermetadata_user.py | 1 - .../0030_alter_embargoedzarruploadfile_blob_and_more.py | 1 - .../0031_asset_asset_metadata_has_schema_version_and_more.py | 1 - ...rgoedzarrarchive_checksum_zarrarchive_checksum_and_more.py | 1 - ...argoedzarrarchive_unique-embargo-dandiset-name_and_more.py | 1 - .../0034_remove_embargoedzarrarchive_dandiset_and_more.py | 1 - ...5_alter_asset_zarr_delete_embargoedzarrarchive_and_more.py | 1 - .../migrations/0036_dandisetuserobjectpermission_and_more.py | 1 - dandiapi/api/migrations/0037_alter_version_status.py | 1 - ...8_assetpath_assetpathrelation_alter_asset_path_and_more.py | 1 - .../api/migrations/0039_assetpath_consistent-leaf-paths.py | 1 - dandiapi/api/tests/test_upload.py | 4 ---- dandiapi/zarr/migrations/0001_initial.py | 1 - tox.ini | 2 +- 41 files changed, 1 insertion(+), 44 deletions(-) diff --git a/dandiapi/api/migrations/0001_initial.py b/dandiapi/api/migrations/0001_initial.py index a876fe900..b4e7b0aac 100644 --- a/dandiapi/api/migrations/0001_initial.py +++ b/dandiapi/api/migrations/0001_initial.py @@ -14,7 +14,6 @@ class Migration(migrations.Migration): - initial = True dependencies = [] diff --git a/dandiapi/api/migrations/0002_unique_asset_blob_etag_size.py b/dandiapi/api/migrations/0002_unique_asset_blob_etag_size.py index 50eebaa47..4cfddabe3 100644 --- a/dandiapi/api/migrations/0002_unique_asset_blob_etag_size.py +++ b/dandiapi/api/migrations/0002_unique_asset_blob_etag_size.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0001_initial'), ] diff --git a/dandiapi/api/migrations/0003_rename_uuids.py b/dandiapi/api/migrations/0003_rename_uuids.py index aec18d4dc..5b955f0eb 100644 --- a/dandiapi/api/migrations/0003_rename_uuids.py +++ b/dandiapi/api/migrations/0003_rename_uuids.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0002_unique_asset_blob_etag_size'), ] diff --git a/dandiapi/api/migrations/0004_generic_multipart_upload_id.py b/dandiapi/api/migrations/0004_generic_multipart_upload_id.py index c4ca667d7..acc4d2951 100644 --- a/dandiapi/api/migrations/0004_generic_multipart_upload_id.py +++ b/dandiapi/api/migrations/0004_generic_multipart_upload_id.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0003_rename_uuids'), ] diff --git a/dandiapi/api/migrations/0005_version_doi.py b/dandiapi/api/migrations/0005_version_doi.py index 3355d4ee7..5af96953b 100644 --- a/dandiapi/api/migrations/0005_version_doi.py +++ b/dandiapi/api/migrations/0005_version_doi.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0004_generic_multipart_upload_id'), ] diff --git a/dandiapi/api/migrations/0006_default_oauth_application.py b/dandiapi/api/migrations/0006_default_oauth_application.py index 2ea244a1d..7a3aa176d 100644 --- a/dandiapi/api/migrations/0006_default_oauth_application.py +++ b/dandiapi/api/migrations/0006_default_oauth_application.py @@ -31,7 +31,6 @@ def reverse_create_application(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ('api', '0005_version_doi'), ('oauth2_provider', '0003_auto_20201211_1314'), diff --git a/dandiapi/api/migrations/0007_validation_status.py b/dandiapi/api/migrations/0007_validation_status.py index ddba49106..61c06f4c3 100644 --- a/dandiapi/api/migrations/0007_validation_status.py +++ b/dandiapi/api/migrations/0007_validation_status.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0006_default_oauth_application'), ] diff --git a/dandiapi/api/migrations/0008_version_validation_status.py b/dandiapi/api/migrations/0008_version_validation_status.py index dfa25c0d0..a1b4ae29c 100644 --- a/dandiapi/api/migrations/0008_version_validation_status.py +++ b/dandiapi/api/migrations/0008_version_validation_status.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0007_validation_status'), ] diff --git a/dandiapi/api/migrations/0009_asset_published.py b/dandiapi/api/migrations/0009_asset_published.py index 59c21cd4c..b39cccb75 100644 --- a/dandiapi/api/migrations/0009_asset_published.py +++ b/dandiapi/api/migrations/0009_asset_published.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0008_version_validation_status'), ] diff --git a/dandiapi/api/migrations/0010_blank_validation_errors.py b/dandiapi/api/migrations/0010_blank_validation_errors.py index 36635fc3b..d77fee570 100644 --- a/dandiapi/api/migrations/0010_blank_validation_errors.py +++ b/dandiapi/api/migrations/0010_blank_validation_errors.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0009_asset_published'), ] diff --git a/dandiapi/api/migrations/0012_merge_20210630_1354.py b/dandiapi/api/migrations/0012_merge_20210630_1354.py index f0ffaee93..12a659c01 100644 --- a/dandiapi/api/migrations/0012_merge_20210630_1354.py +++ b/dandiapi/api/migrations/0012_merge_20210630_1354.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0010_blank_validation_errors'), ('api', '0011_stagingapplication'), diff --git a/dandiapi/api/migrations/0013_add_published_status.py b/dandiapi/api/migrations/0013_add_published_status.py index 06384e7d1..8ad0e1899 100644 --- a/dandiapi/api/migrations/0013_add_published_status.py +++ b/dandiapi/api/migrations/0013_add_published_status.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0012_merge_20210630_1354'), ] diff --git a/dandiapi/api/migrations/0014_alter_stagingapplication_skip_authorization.py b/dandiapi/api/migrations/0014_alter_stagingapplication_skip_authorization.py index 5ed48b83e..469d797f9 100644 --- a/dandiapi/api/migrations/0014_alter_stagingapplication_skip_authorization.py +++ b/dandiapi/api/migrations/0014_alter_stagingapplication_skip_authorization.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0013_add_published_status'), ] diff --git a/dandiapi/api/migrations/0015_validation_fields.py b/dandiapi/api/migrations/0015_validation_fields.py index 568ac85fa..f942070fb 100644 --- a/dandiapi/api/migrations/0015_validation_fields.py +++ b/dandiapi/api/migrations/0015_validation_fields.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0014_alter_stagingapplication_skip_authorization'), ] diff --git a/dandiapi/api/migrations/0016_remove_metadata_tables.py b/dandiapi/api/migrations/0016_remove_metadata_tables.py index 0ff5405ea..bb6e28e12 100644 --- a/dandiapi/api/migrations/0016_remove_metadata_tables.py +++ b/dandiapi/api/migrations/0016_remove_metadata_tables.py @@ -27,7 +27,6 @@ def migrate_metadata(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ('api', '0015_validation_fields'), ] diff --git a/dandiapi/api/migrations/0017_alter_version_version.py b/dandiapi/api/migrations/0017_alter_version_version.py index c42cf0491..a7e37ba48 100644 --- a/dandiapi/api/migrations/0017_alter_version_version.py +++ b/dandiapi/api/migrations/0017_alter_version_version.py @@ -5,7 +5,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0016_remove_metadata_tables'), ] diff --git a/dandiapi/api/migrations/0018_alter_validation_errors.py b/dandiapi/api/migrations/0018_alter_validation_errors.py index f8b0ba125..a7a07cbf4 100644 --- a/dandiapi/api/migrations/0018_alter_validation_errors.py +++ b/dandiapi/api/migrations/0018_alter_validation_errors.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0017_alter_version_version'), ] diff --git a/dandiapi/api/migrations/0019_usermetadata.py b/dandiapi/api/migrations/0019_usermetadata.py index 2e50d9bd4..3c8e25e8f 100644 --- a/dandiapi/api/migrations/0019_usermetadata.py +++ b/dandiapi/api/migrations/0019_usermetadata.py @@ -26,7 +26,6 @@ def reverse_update_existing_users(app, schema_editor): class Migration(migrations.Migration): - dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('api', '0018_alter_validation_errors'), diff --git a/dandiapi/api/migrations/0020_zarr.py b/dandiapi/api/migrations/0020_zarr.py index 929f0249b..2e37c6b9c 100644 --- a/dandiapi/api/migrations/0020_zarr.py +++ b/dandiapi/api/migrations/0020_zarr.py @@ -12,7 +12,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0019_usermetadata'), ] diff --git a/dandiapi/api/migrations/0021_embargo_models.py b/dandiapi/api/migrations/0021_embargo_models.py index 5069b54aa..0445dc3f8 100644 --- a/dandiapi/api/migrations/0021_embargo_models.py +++ b/dandiapi/api/migrations/0021_embargo_models.py @@ -12,7 +12,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0020_zarr'), ] diff --git a/dandiapi/api/migrations/0022_upload_dandiset_alter_stagingapplication_user.py b/dandiapi/api/migrations/0022_upload_dandiset_alter_stagingapplication_user.py index 6ca1f49d3..32c6b1327 100644 --- a/dandiapi/api/migrations/0022_upload_dandiset_alter_stagingapplication_user.py +++ b/dandiapi/api/migrations/0022_upload_dandiset_alter_stagingapplication_user.py @@ -24,7 +24,6 @@ def reverse_set_default_upload_dandiset(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ('api', '0021_embargo_models'), ] diff --git a/dandiapi/api/migrations/0023_embargoedzarrarchive.py b/dandiapi/api/migrations/0023_embargoedzarrarchive.py index c0896ae45..e28fa45bb 100644 --- a/dandiapi/api/migrations/0023_embargoedzarrarchive.py +++ b/dandiapi/api/migrations/0023_embargoedzarrarchive.py @@ -11,7 +11,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0022_upload_dandiset_alter_stagingapplication_user'), ] diff --git a/dandiapi/api/migrations/0024_biginteger_zarrarchives.py b/dandiapi/api/migrations/0024_biginteger_zarrarchives.py index 27d97f221..02226fb53 100644 --- a/dandiapi/api/migrations/0024_biginteger_zarrarchives.py +++ b/dandiapi/api/migrations/0024_biginteger_zarrarchives.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0023_embargoedzarrarchive'), ] diff --git a/dandiapi/api/migrations/0025_zarrarchive_dandiset.py b/dandiapi/api/migrations/0025_zarrarchive_dandiset.py index af5b98023..6c8a5687a 100644 --- a/dandiapi/api/migrations/0025_zarrarchive_dandiset.py +++ b/dandiapi/api/migrations/0025_zarrarchive_dandiset.py @@ -19,7 +19,6 @@ def set_default_zarrarchive_dandiset(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ('api', '0024_biginteger_zarrarchives'), diff --git a/dandiapi/api/migrations/0026_alter_asset_id_alter_assetblob_id_alter_dandiset_id_and_more.py b/dandiapi/api/migrations/0026_alter_asset_id_alter_assetblob_id_alter_dandiset_id_and_more.py index 6db506c30..0ead56d98 100644 --- a/dandiapi/api/migrations/0026_alter_asset_id_alter_assetblob_id_alter_dandiset_id_and_more.py +++ b/dandiapi/api/migrations/0026_alter_asset_id_alter_assetblob_id_alter_dandiset_id_and_more.py @@ -6,7 +6,6 @@ class Migration(migrations.Migration): - dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('api', '0025_zarrarchive_dandiset'), diff --git a/dandiapi/api/migrations/0027_embargoedzarrarchive_status_zarrarchive_status.py b/dandiapi/api/migrations/0027_embargoedzarrarchive_status_zarrarchive_status.py index 4c79895ea..16c28652e 100644 --- a/dandiapi/api/migrations/0027_embargoedzarrarchive_status_zarrarchive_status.py +++ b/dandiapi/api/migrations/0027_embargoedzarrarchive_status_zarrarchive_status.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0026_alter_asset_id_alter_assetblob_id_alter_dandiset_id_and_more'), ] diff --git a/dandiapi/api/migrations/0028_alter_asset_previous.py b/dandiapi/api/migrations/0028_alter_asset_previous.py index 74ce9798e..7088cc778 100644 --- a/dandiapi/api/migrations/0028_alter_asset_previous.py +++ b/dandiapi/api/migrations/0028_alter_asset_previous.py @@ -5,7 +5,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0027_embargoedzarrarchive_status_zarrarchive_status'), ] diff --git a/dandiapi/api/migrations/0029_alter_usermetadata_user.py b/dandiapi/api/migrations/0029_alter_usermetadata_user.py index fc62720f3..582847dee 100644 --- a/dandiapi/api/migrations/0029_alter_usermetadata_user.py +++ b/dandiapi/api/migrations/0029_alter_usermetadata_user.py @@ -6,7 +6,6 @@ class Migration(migrations.Migration): - dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('api', '0028_alter_asset_previous'), diff --git a/dandiapi/api/migrations/0030_alter_embargoedzarruploadfile_blob_and_more.py b/dandiapi/api/migrations/0030_alter_embargoedzarruploadfile_blob_and_more.py index 5e3a192a2..4cf611a4a 100644 --- a/dandiapi/api/migrations/0030_alter_embargoedzarruploadfile_blob_and_more.py +++ b/dandiapi/api/migrations/0030_alter_embargoedzarruploadfile_blob_and_more.py @@ -6,7 +6,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0029_alter_usermetadata_user'), ] diff --git a/dandiapi/api/migrations/0031_asset_asset_metadata_has_schema_version_and_more.py b/dandiapi/api/migrations/0031_asset_asset_metadata_has_schema_version_and_more.py index 9a0fd0016..73d46b151 100644 --- a/dandiapi/api/migrations/0031_asset_asset_metadata_has_schema_version_and_more.py +++ b/dandiapi/api/migrations/0031_asset_asset_metadata_has_schema_version_and_more.py @@ -14,7 +14,6 @@ def populate_empty_asset_schema_versions(apps, _): class Migration(migrations.Migration): - dependencies = [ ('api', '0030_alter_embargoedzarruploadfile_blob_and_more'), ] diff --git a/dandiapi/api/migrations/0032_embargoedzarrarchive_checksum_zarrarchive_checksum_and_more.py b/dandiapi/api/migrations/0032_embargoedzarrarchive_checksum_zarrarchive_checksum_and_more.py index 9788a84a1..a1c60cb08 100644 --- a/dandiapi/api/migrations/0032_embargoedzarrarchive_checksum_zarrarchive_checksum_and_more.py +++ b/dandiapi/api/migrations/0032_embargoedzarrarchive_checksum_zarrarchive_checksum_and_more.py @@ -12,7 +12,6 @@ def forward_set_checksum(apps, schema_editor): class Migration(migrations.Migration): - dependencies = [ ('api', '0031_asset_asset_metadata_has_schema_version_and_more'), ] diff --git a/dandiapi/api/migrations/0033_remove_embargoedzarrarchive_unique-embargo-dandiset-name_and_more.py b/dandiapi/api/migrations/0033_remove_embargoedzarrarchive_unique-embargo-dandiset-name_and_more.py index bef8b9630..175739ffd 100644 --- a/dandiapi/api/migrations/0033_remove_embargoedzarrarchive_unique-embargo-dandiset-name_and_more.py +++ b/dandiapi/api/migrations/0033_remove_embargoedzarrarchive_unique-embargo-dandiset-name_and_more.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0032_embargoedzarrarchive_checksum_zarrarchive_checksum_and_more'), ] diff --git a/dandiapi/api/migrations/0034_remove_embargoedzarrarchive_dandiset_and_more.py b/dandiapi/api/migrations/0034_remove_embargoedzarrarchive_dandiset_and_more.py index 84211b640..b64e112db 100644 --- a/dandiapi/api/migrations/0034_remove_embargoedzarrarchive_dandiset_and_more.py +++ b/dandiapi/api/migrations/0034_remove_embargoedzarrarchive_dandiset_and_more.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0033_remove_embargoedzarrarchive_unique-embargo-dandiset-name_and_more'), ] diff --git a/dandiapi/api/migrations/0035_alter_asset_zarr_delete_embargoedzarrarchive_and_more.py b/dandiapi/api/migrations/0035_alter_asset_zarr_delete_embargoedzarrarchive_and_more.py index 0b0292ac5..211ccd9b6 100644 --- a/dandiapi/api/migrations/0035_alter_asset_zarr_delete_embargoedzarrarchive_and_more.py +++ b/dandiapi/api/migrations/0035_alter_asset_zarr_delete_embargoedzarrarchive_and_more.py @@ -5,7 +5,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0034_remove_embargoedzarrarchive_dandiset_and_more'), ('zarr', '0001_initial'), diff --git a/dandiapi/api/migrations/0036_dandisetuserobjectpermission_and_more.py b/dandiapi/api/migrations/0036_dandisetuserobjectpermission_and_more.py index f5024886d..10dca238f 100644 --- a/dandiapi/api/migrations/0036_dandisetuserobjectpermission_and_more.py +++ b/dandiapi/api/migrations/0036_dandisetuserobjectpermission_and_more.py @@ -24,7 +24,6 @@ def migrate_dandiset_permissions(apps, _): class Migration(migrations.Migration): - dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), diff --git a/dandiapi/api/migrations/0037_alter_version_status.py b/dandiapi/api/migrations/0037_alter_version_status.py index a88ee366b..ed16cada4 100644 --- a/dandiapi/api/migrations/0037_alter_version_status.py +++ b/dandiapi/api/migrations/0037_alter_version_status.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0036_dandisetuserobjectpermission_and_more'), ] diff --git a/dandiapi/api/migrations/0038_assetpath_assetpathrelation_alter_asset_path_and_more.py b/dandiapi/api/migrations/0038_assetpath_assetpathrelation_alter_asset_path_and_more.py index b05b00ce1..3b267c6bd 100644 --- a/dandiapi/api/migrations/0038_assetpath_assetpathrelation_alter_asset_path_and_more.py +++ b/dandiapi/api/migrations/0038_assetpath_assetpathrelation_alter_asset_path_and_more.py @@ -7,7 +7,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0037_alter_version_status'), ] diff --git a/dandiapi/api/migrations/0039_assetpath_consistent-leaf-paths.py b/dandiapi/api/migrations/0039_assetpath_consistent-leaf-paths.py index 0f410e892..6c66a7276 100644 --- a/dandiapi/api/migrations/0039_assetpath_consistent-leaf-paths.py +++ b/dandiapi/api/migrations/0039_assetpath_consistent-leaf-paths.py @@ -4,7 +4,6 @@ class Migration(migrations.Migration): - dependencies = [ ('api', '0038_assetpath_assetpathrelation_alter_asset_path_and_more'), ] diff --git a/dandiapi/api/tests/test_upload.py b/dandiapi/api/tests/test_upload.py index 920651b49..c5aee59b8 100644 --- a/dandiapi/api/tests/test_upload.py +++ b/dandiapi/api/tests/test_upload.py @@ -17,7 +17,6 @@ def mb(bytes_size: int) -> int: @pytest.mark.django_db def test_blob_read(api_client, asset_blob): - assert api_client.post( '/api/blobs/digest/', {'algorithm': 'dandi:dandi-etag', 'value': asset_blob.etag}, @@ -32,7 +31,6 @@ def test_blob_read(api_client, asset_blob): @pytest.mark.django_db def test_blob_read_sha256(api_client, asset_blob): - assert api_client.post( '/api/blobs/digest/', {'algorithm': 'dandi:sha2-256', 'value': asset_blob.sha256}, @@ -47,7 +45,6 @@ def test_blob_read_sha256(api_client, asset_blob): @pytest.mark.django_db def test_blob_read_bad_algorithm(api_client, asset_blob): - resp = api_client.post( '/api/blobs/digest/', {'algorithm': 'sha256', 'value': asset_blob.sha256}, @@ -59,7 +56,6 @@ def test_blob_read_bad_algorithm(api_client, asset_blob): @pytest.mark.django_db def test_blob_read_does_not_exist(api_client): - resp = api_client.post( '/api/blobs/digest/', {'algorithm': 'dandi:dandi-etag', 'value': 'not etag'}, diff --git a/dandiapi/zarr/migrations/0001_initial.py b/dandiapi/zarr/migrations/0001_initial.py index ef1ae92c7..412645101 100644 --- a/dandiapi/zarr/migrations/0001_initial.py +++ b/dandiapi/zarr/migrations/0001_initial.py @@ -11,7 +11,6 @@ class Migration(migrations.Migration): - initial = True dependencies = [ diff --git a/tox.ini b/tox.ini index 250299d9e..74fd6085e 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ commands = skipsdist = true skip_install = true deps = - black >= 22.1.0 + black >= 23.1.0 isort commands = isort {posargs:.}