Skip to content

Commit

Permalink
Merge pull request #2935 from nf-core/renovate/astral-sh-ruff-pre-com…
Browse files Browse the repository at this point in the history
…mit-0.x

Update pre-commit hook astral-sh/ruff-pre-commit to v0.4.2
  • Loading branch information
mashehu authored Apr 26, 2024
2 parents cdebded + 2d029db commit 5798ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
rev: v0.4.2
hooks:
- id: ruff # linter
args: [--fix, --exit-non-zero-on-fix] # sort imports and fix
Expand Down
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 5798ab9

Please sign in to comment.