Skip to content

Commit

Permalink
When linting, add quay.io when we think it is a biocontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed Apr 26, 2023
1 parent 650858e commit 472b4f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nf_core/modules/lint/main_nf.py
Expand Up @@ -307,6 +307,9 @@ def check_process_section(self, lines, fix_version, progress_bar):
else:
self.failed.append(("docker_tag", "Unable to parse docker tag", self.main_nf))
docker_tag = None
if l.startswith("biocontainers/"):
# When we think it is a biocontainer, assume we are querying quay.io/biocontainers and insert quay.io as prefix
l = "quay.io/" + l
url = urlparse(l.split("'")[0])
# lint double quotes
if l.count('"') > 2:
Expand Down

0 comments on commit 472b4f1

Please sign in to comment.