Fix new UP031 errors from ruff 0.4.2

This commit is contained in:
Nicola Soranzo
2024-04-29 00:09:38 +01:00
parent 0e89124a13
commit 0629908541
127 changed files with 381 additions and 425 deletions
+2 -2
View File
@@ -138,11 +138,11 @@ def _get_library_dataset_paths(args, kwargs):
filename = object_store.get_filename(dataset)
files_dir = dataset.get_extra_files_path()
if (args.exists and object_store.exists(dataset)) or not args.exists:
output.write("%s\n" % _path(filename, args))
output.write(f"{_path(filename, args)}\n")
elif args.exists:
log.warning("Missing %s", filename)
if files_dir and os.path.exists(files_dir):
output.write("%s\n" % _path(files_dir, args))
output.write(f"{_path(files_dir, args)}\n")
last_library = library
output.close()