Skip to content

Commit

Permalink
fix ruff linting (UP031)
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Apr 26, 2024
1 parent e77ed1b commit 2d029db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nf_core/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def rectify_raw_container_matches(self, raw_findings):
if bool(container_definition) and bool(container_definition.group(1)):
pattern = re.escape(container_definition.group(1))
# extract the quoted string(s) following the variable assignment
container_names = re.findall(r"%s\s*=\s*[\"\']([^\"\']+)[\"\']" % pattern, search_space)
container_names = re.findall(rf"{pattern}\s*=\s*[\"\']([^\"\']+)[\"\']", search_space)

if bool(container_names):
if isinstance(container_names, str):
Expand Down

0 comments on commit 2d029db

Please sign in to comment.