Skip to content

Commit

Permalink
add testing the module name back
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Sep 23, 2024
1 parent 0447d1a commit 200ae85
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions nf_core/modules/lint/meta_yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,23 @@ def meta_yml(module_lint_object: ComponentLint, module: NFCoreComponent) -> None

# Confirm that all input and output channels are correctly specified
if valid_meta_yml:
# confirm that the name matches the process name in main.nf
if meta_yaml["name"].upper() == module.process_name:
module.passed.append(
(
"meta_name",
"Correct name specified in `meta.yml`.",
module.meta_yml,
)
)
else:
module.failed.append(
(
"meta_name",
f"Conflicting `process` name between meta.yml (`{meta_yaml['name']}`) and main.nf (`{module.process_name}`)",
module.meta_yml,
)
)
# Check that inputs are specified in meta.yml
if len(module.inputs) > 0 and "input" not in meta_yaml:
module.failed.append(
Expand Down

0 comments on commit 200ae85

Please sign in to comment.