[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-02-07 04:14:42 +00:00 committed by Hugo
parent e20a65793e
commit e11fa357ff
7 changed files with 0 additions and 7 deletions

View file

@ -6,7 +6,6 @@ from . import StorageTests
class TestMemoryStorage(StorageTests):
storage_class = MemoryStorage
supports_collections = False

View file

@ -6,7 +6,6 @@ from . import StorageTests
class TestSingleFileStorage(StorageTests):
storage_class = SingleFileStorage
supports_metadata = False

View file

@ -278,7 +278,6 @@ def test_multiple_pairs(tmpdir, runner):
],
)
def test_create_collections(collections, tmpdir, runner):
runner.write_with_general(
dedent(
"""

View file

@ -165,7 +165,6 @@ def metasync(ctx, collections):
async def main(collection_names):
async with aiohttp.TCPConnector(limit_per_host=16) as conn:
for pair_name, collections in collection_names:
collections = prepare_pair(
pair_name=pair_name,

View file

@ -18,7 +18,6 @@ logger = logging.getLogger(__name__)
class FilesystemStorage(Storage):
storage_name = "filesystem"
_repr_attributes = ["path"]

View file

@ -10,7 +10,6 @@ def _random_string():
class MemoryStorage(Storage):
storage_name = "memory"
"""

View file

@ -199,7 +199,6 @@ class Upload(Action):
self.dest = dest
async def _run_impl(self, a, b):
if self.dest.storage.read_only:
href = etag = None
else: