Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade black to 23.1.0 #1465

Merged
merged 1 commit into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0001_initial'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0003_rename_uuids.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0002_unique_asset_blob_etag_size'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0003_rename_uuids'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0005_version_doi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0004_generic_multipart_upload_id'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0006_default_oauth_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0007_validation_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0006_default_oauth_application'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0008_version_validation_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0007_validation_status'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0009_asset_published.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0008_version_validation_status'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0010_blank_validation_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0009_asset_published'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0012_merge_20210630_1354.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0010_blank_validation_errors'),
('api', '0011_stagingapplication'),
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0013_add_published_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0012_merge_20210630_1354'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0013_add_published_status'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0015_validation_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0014_alter_stagingapplication_skip_authorization'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0016_remove_metadata_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def migrate_metadata(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
('api', '0015_validation_fields'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0017_alter_version_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0016_remove_metadata_tables'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0018_alter_validation_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0017_alter_version_version'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0019_usermetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0020_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0019_usermetadata'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0021_embargo_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0020_zarr'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def reverse_set_default_upload_dandiset(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [
('api', '0021_embargo_models'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0023_embargoedzarrarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0022_upload_dandiset_alter_stagingapplication_user'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0024_biginteger_zarrarchives.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0023_embargoedzarrarchive'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0025_zarrarchive_dandiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0025_zarrarchive_dandiset'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0026_alter_asset_id_alter_assetblob_id_alter_dandiset_id_and_more'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0028_alter_asset_previous.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0027_embargoedzarrarchive_status_zarrarchive_status'),
]
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0029_alter_usermetadata_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0028_alter_asset_previous'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0029_alter_usermetadata_user'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def populate_empty_asset_schema_versions(apps, _):


class Migration(migrations.Migration):

dependencies = [
('api', '0030_alter_embargoedzarruploadfile_blob_and_more'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0032_embargoedzarrarchive_checksum_zarrarchive_checksum_and_more'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0033_remove_embargoedzarrarchive_unique-embargo-dandiset-name_and_more'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0034_remove_embargoedzarrarchive_dandiset_and_more'),
('zarr', '0001_initial'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 0 additions & 1 deletion dandiapi/api/migrations/0037_alter_version_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0036_dandisetuserobjectpermission_and_more'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0037_alter_version_status'),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
('api', '0038_assetpath_assetpathrelation_alter_asset_path_and_more'),
]
Expand Down
4 changes: 0 additions & 4 deletions dandiapi/api/tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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},
Expand All @@ -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},
Expand All @@ -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'},
Expand Down
1 change: 0 additions & 1 deletion dandiapi/zarr/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ commands =
skipsdist = true
skip_install = true
deps =
black >= 22.1.0
black >= 23.1.0
isort
commands =
isort {posargs:.}
Expand Down