diff --git a/swh/vault/interface.py b/swh/vault/interface.py index 68fabb8ca7e01112ce451ec85a756c6b18ae6146..cc8162ce493f98178aa72309dbf0c395c1b07717 100644 --- a/swh/vault/interface.py +++ b/swh/vault/interface.py @@ -43,8 +43,7 @@ class VaultInterface(Protocol): ... @remote_api_endpoint("progress") - def progress(self, bundle_type: str, swhid: CoreSWHID): - ... + def progress(self, bundle_type: str, swhid: CoreSWHID): ... # Cookers endpoints diff --git a/swh/vault/tests/test_cookers.py b/swh/vault/tests/test_cookers.py index 42662624615efb544e4a255306f3ce289f192acf..2d5a4585e634a7c78c4eeb1030c54d56894ce71a 100644 --- a/swh/vault/tests/test_cookers.py +++ b/swh/vault/tests/test_cookers.py @@ -224,9 +224,10 @@ def cook_extract_directory_gitfast(storage, swhid, fsck=True, direct_objstorage= ) storage.revision_add([revision]) - with cook_stream_revision_gitfast( - storage, revision.swhid() - ) as stream, test_repo as p: + with ( + cook_stream_revision_gitfast(storage, revision.swhid()) as stream, + test_repo as p, + ): processor = dulwich.fastexport.GitImportProcessor(test_repo.repo) processor.import_stream(stream) test_repo.checkout(b"HEAD")