Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 22, 2024
1 parent 70c3d53 commit 0809ad8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/showyourwork/workflow/scripts/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ def check_figure_format(figure):
caption_labels = caption.findall("LABEL")
if len(caption_labels):
raise exceptions.FigureFormatError(
"Label `{}` should not be nested within the figure caption".format(
caption_labels[0].text
)
f"Label `{caption_labels[0].text}` should not be nested within the figure caption"
)

# The label must always come after the figure caption
Expand Down

0 comments on commit 0809ad8

Please sign in to comment.