Skip to content

Commit

Permalink
lint fixes...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 13, 2024
1 parent c06ad5a commit 4a9d11e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/galaxy/managers/markdown_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
from .markdown_parse import (
EMBED_DIRECTIVE_REGEX,
GALAXY_MARKDOWN_FUNCTION_CALL_LINE,
VALID_ARGUMENTS,
validate_galaxy_markdown,
)

Expand Down Expand Up @@ -97,7 +96,7 @@ def _remap(container, line):
if id_match := re.search(ENCODED_ID_PATTERN, line):
object_id = id_match.group(2)
decoded_id = trans.security.decode_id(object_id)
line = line.replace(id_match.group(), "{}={}".format(id_match.group(1), decoded_id))
line = line.replace(id_match.group(), f"{id_match.group(1)}={decoded_id}")
return (line, False)

def _remap_embed_container(match):
Expand All @@ -107,7 +106,7 @@ def _remap_embed_container(match):
if id_match := re.search(ENCODED_ID_PATTERN, whole_match):
object_id = id_match.group(2)
decoded_id = trans.security.decode_id(object_id)
whole_match = whole_match.replace(id_match.group(), "{}={:d}".format(id_match.group(1), decoded_id))
whole_match = whole_match.replace(id_match.group(), f"{id_match.group(1)}={decoded_id}")

return whole_match

Expand Down Expand Up @@ -309,7 +308,7 @@ def _remap_embed_container_ids(match):
if id_match := re.search(UNENCODED_ID_PATTERN, whole_match):
object_id = id_match.group(2)
encoded_id = trans.security.encode_id(object_id)
whole_match = whole_match.replace(id_match.group(), "{}={}".format(id_match.group(1), encoded_id))
whole_match = whole_match.replace(id_match.group(), f"{id_match.group(1)}={encoded_id}")

return whole_match

Expand Down

0 comments on commit 4a9d11e

Please sign in to comment.