Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pipeline linting nf-core component behaviour #3480

Merged
merged 17 commits into from
Mar 6, 2025
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@

- Add linting for ifEmpty(null) ([#3411](https://github.com/nf-core/tools/pull/3411))
- Fix arbitrarily nested params schema linting ([#3443](https://github.com/nf-core/tools/pull/3443))
- fix: linting with comments after the input directive ([#3458](https://github.com/nf-core/tools/pull/3458))
- Fix: linting with comments after the input directive ([#3458](https://github.com/nf-core/tools/pull/3458))
- EDAM ontology fixes ([#3460](https://github.com/nf-core/tools/pull/3460))
- Fix default linting of nf-core components when `nf-core pipelines lint` is ran ([#3480](https://github.com/nf-core/tools/pull/3480))

### Modules

Expand Down
6 changes: 5 additions & 1 deletion nf_core/pipelines/lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,11 @@ def run_linting(
lint_obj._load_lint_config()
lint_obj.load_pipeline_config()

if lint_obj.lint_config and not lint_obj.lint_config["nfcore_components"]:
if (
lint_obj.lint_config
and lint_obj.lint_config["nfcore_components"] is not None
and not lint_obj.lint_config["nfcore_components"]
):
module_lint_obj = None
subworkflow_lint_obj = None
else:
Expand Down
Loading