Merge pull request #669 from code-review-doctor/fix-probably-meant-fstring
Missing `f` prefix on f-strings fix
This commit is contained in:
Коммит
e93722596b
|
@ -96,7 +96,7 @@ def downsize_imagelist(
|
|||
dst_path = os.path.join(out_dir, src_rel_path)
|
||||
assert os.path.normpath(src_rel_path) != os.path.normpath(
|
||||
dst_path
|
||||
), "Image source and destination path should not be the same: {src_rel_path}"
|
||||
), f"Image source and destination path should not be the same: {src_rel_path}"
|
||||
os.makedirs(os.path.dirname(dst_path), exist_ok=True)
|
||||
im.save(dst_path)
|
||||
|
||||
|
|
|
@ -149,11 +149,11 @@ def plot_sweeper_df(
|
|||
cols = list(df.columns.values) if show_cols is None else show_cols
|
||||
|
||||
if not set(cols) <= set(list(df.columns.values)):
|
||||
raise ValueError("values of {show_cols} is not found {df}.")
|
||||
raise ValueError(f"values of {show_cols} is not found {df}.")
|
||||
|
||||
if sort_by is not None and sort_by not in cols:
|
||||
raise ValueError(
|
||||
"{sort_by} must be in {show_cols} if {show_cols} is used."
|
||||
f"{sort_by} must be in {show_cols} if {show_cols} is used."
|
||||
)
|
||||
|
||||
if sort_by:
|
||||
|
|
Загрузка…
Ссылка в новой задаче