Fix line which are too long

This commit is contained in:
Hugo Osvaldo Barrera 2025-08-29 09:55:55 +02:00
parent 20cc1247ed
commit 01fa614b6b
4 changed files with 9 additions and 7 deletions

View file

@ -36,8 +36,8 @@ async def prepare_pair(pair_name, collections, config, *, connector):
config_a, config_b = all_collections[collection_name]
except KeyError:
raise exceptions.UserError(
f"Pair {pair_name}: Collection {json.dumps(collection_name)} not found. These are the "
f"configured collections:\n{list(all_collections)}"
f"Pair {pair_name}: Collection {json.dumps(collection_name)} not found."
f"These are the configured collections:\n{list(all_collections)}"
)
collection = CollectionConfig(pair, collection_name, config_a, config_b)

View file

@ -79,9 +79,9 @@ def handle_cli_error(status_name=None, e=None):
cli_logger.critical(e)
except StorageEmpty as e:
cli_logger.error(
f'{status_name}: Storage "{e.empty_storage.instance_name}" was completely emptied. If you '
"want to delete ALL entries on BOTH sides, then use "
f"`vdirsyncer sync --force-delete {status_name}`. "
f'{status_name}: Storage "{e.empty_storage.instance_name}" was '
"completely emptied. If you want to delete ALL entries on BOTH sides,"
f"then use `vdirsyncer sync --force-delete {status_name}`. "
f"Otherwise delete the files for {status_name} in your status "
"directory."
)

View file

@ -104,7 +104,8 @@ def prepare_auth(auth, username, password):
return DigestAuthMethod(username, password)
if auth == "guess":
raise exceptions.UserError(
"'Guess' authentication is not supported in this version of vdirsyncer. \n"
"'Guess' authentication is not supported in this version of "
"vdirsyncer.\n"
"Please explicitly specify either 'basic' or 'digest' auth instead. \n"
"See the following issue for more information: "
"https://github.com/pimutils/vdirsyncer/issues/1015"

View file

@ -140,7 +140,8 @@ class Storage(metaclass=StorageMeta):
except ValueError:
pass
return f"<{self.__class__.__name__}(**{ ({x: getattr(self, x) for x in self._repr_attributes}) })>"
attrs = {x: getattr(self, x) for x in self._repr_attributes}
return f"<{self.__class__.__name__}(**{attrs})>"
@abstractmethod
async def list(self) -> list[tuple]: