Skip to content

Commit c8a59cb

Browse files
Merge branch 'dev' into fix-component-update-script
2 parents 6f63caa + f34f4d6 commit c8a59cb

File tree

20 files changed

+61
-100
lines changed

20 files changed

+61
-100
lines changed

.editorconfig

-30
This file was deleted.

.pre-commit-config.yaml

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.9.5
3+
rev: v0.9.9
44
hooks:
55
- id: ruff # linter
66
args: [--fix, --exit-non-zero-on-fix] # sort imports and fix
@@ -11,13 +11,26 @@ repos:
1111
- id: prettier
1212
additional_dependencies:
1313
14-
15-
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
16-
rev: "3.2.0"
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v5.0.0
1716
hooks:
18-
- id: editorconfig-checker
19-
alias: ec
20-
17+
- id: trailing-whitespace
18+
args: [--markdown-linebreak-ext=md]
19+
exclude: |
20+
(?x)^(
21+
.*\.snap$|
22+
nf_core/pipeline-template/subworkflows/.*|
23+
nf_core/pipeline-template/modules/.*|
24+
tests/pipelines/__snapshots__/.*
25+
)$
26+
- id: end-of-file-fixer
27+
exclude: |
28+
(?x)^(
29+
.*\.snap$|
30+
nf_core/pipeline-template/subworkflows/.*|
31+
nf_core/pipeline-template/modules/.*|
32+
tests/pipelines/__snapshots__/.*
33+
)$
2134
- repo: https://github.com/pre-commit/mirrors-mypy
2235
rev: "v1.15.0"
2336
hooks:

.prettierignore

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ tests/data/pipeline_create_template_skip.yml
1212
# don't run on things handled by ruff
1313
*.py
1414
*.pyc
15-

.prettierrc.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
printWidth: 120
2+
tabWidth: 4
3+
overrides:
4+
- files: "*.{md,yml,yaml,html,css,scss,js,cff}"
5+
options:
6+
tabWidth: 2

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
### Modules
1818

19+
- increase meta index for multiple input channels ([#3463](https://github.com/nf-core/tools/pull/3463))
20+
1921
### Subworkflows
2022

2123
### General
@@ -31,6 +33,9 @@
3133
- chore(deps): update python:3.12-slim docker digest to 34656cd ([#3450](https://github.com/nf-core/tools/pull/3450))
3234
- Remove Twitter from README ([#3454](https://github.com/nf-core/tools/pull/3454))
3335
- docs: fix contributing link in the main README ([#3459](https://github.com/nf-core/tools/pull/3459))
36+
- Cleanup: Removed Redundant if Condition ([#3468](https://github.com/nf-core/tools/pull/3468))
37+
- chore(deps): update python:3.12-slim docker digest to aaa3f8c ([#3474](https://github.com/nf-core/tools/pull/3474))
38+
- chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.9.9 ([#3470](https://github.com/nf-core/tools/pull/3470))
3439

3540
## [v3.2.0 - Pewter Pangolin](https://github.com/nf-core/tools/releases/tag/3.2.0) - [2025-01-27]
3641

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-slim@sha256:34656cd90456349040784165b9decccbcee4de66f3ead0a1168ba893455afd1e
1+
FROM python:3.12-slim@sha256:aaa3f8cb64dd64e5f8cb6e58346bdcfa410a108324b0f28f1a7cc5964355b211
22
33
description="Docker image containing requirements for nf-core/tools"
44

+1-1
Loading

nf_core/module-template/main.nf

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ process {{ component_name_underscore|upper }} {
3333
{%- if inputs %}
3434
// TODO nf-core: Update the information obtained from bio.tools and make sure that it is correct
3535
{%- for input_name, ontologies in inputs.items() %}
36-
{{ 'tuple val(meta), path(' + input_name + ')' if has_meta else 'path ' + input_name }}
36+
{% set meta_index = loop.index|string if not loop.first else '' %}
37+
{{ 'tuple val(meta' + meta_index + '), path(' + input_name + ')' if has_meta else 'path ' + input_name }}
3738
{%- endfor %}
3839
{%- else -%}
3940
{% if not_empty_template -%}

nf_core/module-template/meta.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ input:
2929
{% if inputs -%}
3030
{% for input_name, ontologies in inputs.items() -%}
3131
{% if has_meta %}
32-
- - meta:
32+
- - meta{{ loop.index|string if not loop.first else '' }}:
3333
type: map
3434
description: |
3535
Groovy Map containing sample information

nf_core/pipeline-template/.editorconfig

-41
This file was deleted.

nf_core/pipeline-template/.github/workflows/ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ concurrency:
1818
jobs:
1919
test:
2020
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
21-
# Only run on push if this is the nf-core dev branch (merged PRs)
22-
if: "${{{% endraw %} github.event_name != 'push' || (github.event_name == 'push' && github.repository == '{{ name }}') {% raw %}}}"
2321
runs-on: ubuntu-latest
2422
strategy:
2523
matrix:

nf_core/pipeline-template/.github/workflows/linting_comment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Download lint results
14-
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
14+
uses: dawidd6/action-download-artifact@07ab29fd4a977ae4d2b275087cf67563dfdf0295 # v9
1515
with:
1616
workflow: linting.yml
1717
workflow_conclusion: completed

nf_core/pipeline-template/.pre-commit-config.yaml

+19-5
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,23 @@ repos:
55
- id: prettier
66
additional_dependencies:
77
8-
9-
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
10-
rev: "3.2.0"
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v5.0.0
1110
hooks:
12-
- id: editorconfig-checker
13-
alias: ec
11+
- id: trailing-whitespace
12+
args: [--markdown-linebreak-ext=md]
13+
exclude: |
14+
(?x)^(
15+
.*ro-crate-metadata.json$|
16+
modules/nf-core/.*|
17+
subworkflows/nf-core/.*|
18+
.*\.snap$
19+
)$
20+
- id: end-of-file-fixer
21+
exclude: |
22+
(?x)^(
23+
.*ro-crate-metadata.json$|
24+
modules/nf-core/.*|
25+
subworkflows/nf-core/.*|
26+
.*\.snap$
27+
)$
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
printWidth: 120
2+
tabWidth: 4
3+
overrides:
4+
- files: "*.{md,yml,yaml,html,css,scss,js,cff}"
5+
options:
6+
tabWidth: 2

nf_core/pipeline-template/subworkflows/local/utils_nfcore_pipeline_pipeline/main.nf

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,4 +303,4 @@ def methodsDescriptionText(mqc_methods_yaml) {
303303

304304
return description_html.toString()
305305
}
306-
{% endif %}
306+
{%- endif %}

0 commit comments

Comments
 (0)