Skip to content

Commit

Permalink
Merge pull request #2263 from mashehu/fix-template-modules
Browse files Browse the repository at this point in the history
Update template modules
  • Loading branch information
mirpedrol authored Apr 28, 2023
2 parents 9f9e588 + 95d7ef3 commit fe2c5e8
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion nf_core/modules/lint/main_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def check_process_labels(self, lines):
if len(all_labels) > 0:
for label in all_labels:
try:
label = re.match("^label\s+([a-zA-Z0-9_-]+)$", label).group(1)
label = re.match(r"^label\s+'?([a-zA-Z0-9_-]+)'?$", label).group(1)
except AttributeError:
self.warned.append(
(
Expand Down
4 changes: 2 additions & 2 deletions nf_core/pipeline-template/modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"nf-core": {
"custom/dumpsoftwareversions": {
"branch": "master",
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
"git_sha": "f2d63bd5b68925f98f572eed70993d205cc694b7",
"installed_by": ["modules"]
},
"fastqc": {
Expand All @@ -17,7 +17,7 @@
},
"multiqc": {
"branch": "master",
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
"git_sha": "f2d63bd5b68925f98f572eed70993d205cc694b7",
"installed_by": ["modules"]
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
6 changes: 3 additions & 3 deletions nf_core/pipeline-template/modules/nf-core/multiqc/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion nf_core/pipeline-template/modules/nf-core/multiqc/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions tests/modules/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(self):

PROCESS_LABEL_GOOD = (
"""
label process_high
label 'process_high'
cpus 12
""",
1,
Expand All @@ -131,7 +131,7 @@ def __init__(self):
)
PROCESS_LABEL_NON_ALPHANUMERIC = (
"""
label a:label:with:colons
label 'a:label:with:colons'
cpus 12
""",
0,
Expand All @@ -140,8 +140,8 @@ def __init__(self):
)
PROCESS_LABEL_GOOD_CONFLICTING = (
"""
label process_high
label process_low
label 'process_high'
label 'process_low'
cpus 12
""",
0,
Expand All @@ -150,8 +150,8 @@ def __init__(self):
)
PROCESS_LABEL_GOOD_DUPLICATES = (
"""
label process_high
label process_high
label 'process_high'
label 'process_high'
cpus 12
""",
0,
Expand All @@ -160,8 +160,8 @@ def __init__(self):
)
PROCESS_LABEL_GOOD_AND_NONSTANDARD = (
"""
label process_high
label process_extra_label
label 'process_high'
label 'process_extra_label'
cpus 12
""",
1,
Expand All @@ -170,7 +170,7 @@ def __init__(self):
)
PROCESS_LABEL_NONSTANDARD = (
"""
label process_extra_label
label 'process_extra_label'
cpus 12
""",
0,
Expand Down

0 comments on commit fe2c5e8

Please sign in to comment.