Ram Anusuri
05/14/2025, 2:35 AMnf-core pipelines lint. Our .nf-core.yml config file in the pipeline repo has nf_core_version: 3.2.0 , repository_type: pipeline and lint config specify files_exist , files_unchanged , multiqc_config and nextflow_config keys to skip some file checks and config parameter checks. We were expecting the lint functionality to execute module_changes test along with the existing 20+ pipeline tests (https://nf-co.re/tools/docs/latest/pipeline_lint_tests/ + https://nf-co.re/tools/docs/latest/module_lint_tests/ ). But, from the verbose output -- I see only the pipeline_lint_tests running.
As per the source code @ https://github.com/nf-core/tools/blob/3.2.0/nf_core/pipelines/lint/__init__.py#L573, pipeline lint tests are a union of pipeline tests and module lint tests. So, technically module_changes must be included in that set.
Am I missing any configuration or doing something wrong that is not triggering the module_changes test when pipelines lint is run? For testing it, I added a new line in the nf-core's multiqc main.nf that should theoritically trigger an error that copy the file in the current pipeline is different from the remote nf-core module that is imported. No validation error is reported. Only when nf-core modules lint is run, the test for module_changes is executed and the error reported. Please help.Ram Anusuri
05/14/2025, 2:41 AMnf-core pipelines lint --key module_changes ... no complaints from the tooling about the key not being among valid options or anything like that; yet, it still did not properly run this specific testing in the pipelines lint contextJúlia Mir
05/14/2025, 7:55 AM.nf-core.yml? Is your pipeline an nf-core pipeline or a custom one?Ram Anusuri
05/14/2025, 12:47 PMlint:
files_exist:
- assets/nf-core-tbwgsnpclustering_logo_light.png
- docs/images/nf-core-tbwgsnpclustering_logo_dark.png
- docs/images/nf-core-tbwgsnpclustering_logo_light.png
- .github/ISSUE_TEMPLATE/config.yml
- .github/workflows/awstest.yml
- .github/workflows/awsfulltest.yml
- .github/workflows/ci.yml
- .github/workflows/linting_comment.yml
- conf/igenomes.config
- CODE_OF_CONDUCT.md
- LICENSE
files_unchanged:
- assets/nf-core-tbwgsnpclustering_logo_light.png
- docs/images/nf-core-tbwgsnpclustering_logo_dark.png
- docs/images/nf-core-tbwgsnpclustering_logo_light.png
- .github/CONTRIBUTING.md
- .github/ISSUE_TEMPLATE/bug_report.yml
- .github/ISSUE_TEMPLATE/config.yml
- .github/ISSUE_TEMPLATE/feature_request.yml
- .github/PULL_REQUEST_TEMPLATE.md
- .github/workflows/branch.yml
- .github/workflows/linting.yml
- .github/workflows/linting_comment.yml
- assets/email_template.html
- assets/email_template.txt
- assets/sendmail_template.txt
- docs/README.md
- CODE_OF_CONDUCT.md
- LICENSE
- .gitignore
multiqc_config:
- report_comment
nextflow_config:
- manifest.name
- manifest.homePageJúlia Mir
05/14/2025, 12:59 PMJúlia Mir
05/14/2025, 12:59 PMval(test) and run nf-core pipelines lintJúlia Mir
05/14/2025, 1:00 PMJúlia Mir
05/14/2025, 1:00 PMRam Anusuri
05/14/2025, 1:09 PMJúlia Mir
05/14/2025, 1:17 PMnf-core --verbose pipelines lint ?
let's see if this gives us more information 🤞🏻Ram Anusuri
05/14/2025, 1:25 PMJúlia Mir
05/14/2025, 1:36 PM~/.nextflow/nf-core and try again?Ram Anusuri
05/14/2025, 1:39 PMJúlia Mir
05/14/2025, 1:40 PM--show-passed ?Júlia Mir
05/14/2025, 1:41 PMlint in the .nf-core.yml , right? or another .nf-core.yml file one directory up or similarRam Anusuri
05/14/2025, 1:43 PMRam Anusuri
05/14/2025, 2:11 PMJúlia Mir
05/14/2025, 3:36 PMRam Anusuri
05/14/2025, 3:41 PMRam Anusuri
05/14/2025, 3:57 PMcd /tmp
nf-core pipelines create
// provided inputs (name, org name, author, outdir, etc.)
cd nf-core-wgsnptest/
nf-core pipelines lint
// 189 tests passed, 0 tests ignored, 27 test warnings, 0 tests failed
vi modules/nf-core/multiqc/main.nf
// added val(test) in the input section
nf-core pipelines lint
// same result as above -- 189 tests passed, 0 tests failed.
Attached the output log (without verbose) with before and after change in multiqc main.nfRam Anusuri
05/14/2025, 3:59 PMRam Anusuri
05/14/2025, 4:02 PMRam Anusuri
05/14/2025, 4:05 PMJúlia Mir
05/14/2025, 4:08 PMRam Anusuri
05/14/2025, 4:08 PMJúlia Mir
05/14/2025, 4:09 PMpip install --upgrade --force-reinstall git+<https://github.com/nf-core/tools.git@dev>Júlia Mir
05/14/2025, 4:10 PMRam Anusuri
05/14/2025, 4:11 PMRam Anusuri
05/14/2025, 4:14 PMJúlia Mir
05/14/2025, 4:15 PMRam Anusuri
05/14/2025, 4:15 PMJúlia Mir
05/14/2025, 4:15 PMRam Anusuri
05/14/2025, 4:15 PMJúlia Mir
05/14/2025, 4:15 PMJúlia Mir
05/14/2025, 4:16 PMfiles_unchanged linting tests failing until you update your pipeline to the new template versionRam Anusuri
05/14/2025, 4:19 PM