make ruff happy

This commit is contained in:
Thomas Waldmann 2024-08-14 16:35:29 +02:00
parent 1231c961fb
commit 3e7a4cd814
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
3 changed files with 2 additions and 10 deletions

View file

@ -1,4 +1,3 @@
import argparse
import functools
import os
import textwrap
@ -211,7 +210,8 @@ def with_other_repository(manifest=False, cache=False, compatibility=None):
acceptable_versions = (1, 2) if v1_or_v2 else (3,)
if repository.version not in acceptable_versions:
raise Error(
f"This borg version only accepts version {' or '.join(acceptable_versions)} repos for --other-repo."
f"This borg version only accepts version {' or '.join(acceptable_versions)} "
f"repos for --other-repo."
)
kwargs["other_repository"] = repository
if manifest or cache:

View file

@ -3,12 +3,7 @@ import pkgutil
import textwrap
from hashlib import sha256
from borgstore.store import ObjectNotFound as StoreObjectNotFound
from ..helpers import Error, yes, bin_to_hex, hex_to_bin, dash_open
from ..manifest import Manifest, NoManifestError
from ..repository3 import Repository3
from ..repository import Repository
from ..repoobj import RepoObj

View file

@ -1,8 +1,5 @@
import io
import os.path
from ..helpers.msgpack import packb
import pytest
from .hashindex import H