Skip to content

Commit

Permalink
Merge pull request #1208 from ErikDanielsson/modules-json-creation-lint
Browse files Browse the repository at this point in the history
Add pipeline verification function to `nf-core lint`
  • Loading branch information
drpatelh authored Jul 16, 2021
2 parents 2d32038 + f60d25b commit 5342803
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Modules

* Added consistency checks between installed modules and `modules.json` ([#1199](https://github.com/nf-core/tools/issues/1199))
* Added missing function call to `nf-core lint` ([#1198](https://github.com/nf-core/tools/issues/1198))
* Fix `nf-core lint` not filtering modules test when run with `--key` ([#1203](https://github.com/nf-core/tools/issues/1203))

## [v2.0.1 - Palladium Platypus Junior](https://github.com/nf-core/tools/releases/tag/2.0.1) - [2021-07-13]
Expand Down
6 changes: 6 additions & 0 deletions nf_core/lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ def run_linting(
# Create the modules lint object
module_lint_obj = ModuleLint(pipeline_dir)

# Verify that the pipeline is correctly configured
try:
module_lint_obj.has_valid_directory()
except UserWarning:
raise

# Run only the tests we want
if key:
# Select only the module lint tests
Expand Down

0 comments on commit 5342803

Please sign in to comment.