Skip to content

Commit c2e171a

Browse files
authored
Merge pull request #3324 from nf-core/dev
Dev -> main for 3.1.0
2 parents 41b4516 + 05e7b95 commit c2e171a

File tree

99 files changed

+2472
-844
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2472
-844
lines changed

.github/actions/create-lint-wf/action.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ runs:
1515
cd create-lint-wf
1616
export NXF_WORK=$(pwd)
1717
18-
# Set up Nextflow
1918
- name: Install Nextflow
2019
uses: nf-core/setup-nextflow@v2
2120
with:
@@ -65,6 +64,12 @@ runs:
6564
run: find nf-core-testpipeline -type f -exec sed -i 's/zenodo.XXXXXX/zenodo.123456/g' {} \;
6665
working-directory: create-lint-wf
6766

67+
# Add empty ro-crate file
68+
- name: add empty ro-crate file
69+
shell: bash
70+
run: touch nf-core-testpipeline/ro-crate-metadata.json
71+
working-directory: create-lint-wf
72+
6873
# Run nf-core pipelines linting
6974
- name: nf-core pipelines lint
7075
shell: bash

.github/workflows/create-lint-wf.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@ concurrency:
2727
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2828
cancel-in-progress: true
2929

30-
env:
31-
NXF_ANSI_LOG: false
32-
3330
jobs:
3431
MakeTestWorkflow:
3532
runs-on: ${{ github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' }}
3633
env:
3734
NXF_ANSI_LOG: false
35+
3836
strategy:
3937
matrix:
4038
NXF_VER:

.github/workflows/create-test-lint-wf-template.yml

+6
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
needs: prepare-matrix
5252
env:
5353
NXF_ANSI_LOG: false
54+
5455
strategy:
5556
matrix:
5657
TEMPLATE: ${{ fromJson(needs.prepare-matrix.outputs.all_features) }}
@@ -147,6 +148,11 @@ jobs:
147148
run: find my-prefix-testpipeline -type f -exec sed -i 's/zenodo.XXXXXX/zenodo.123456/g' {} \;
148149
working-directory: create-test-lint-wf
149150

151+
# Add empty ro-crate file
152+
- name: add empty ro-crate file
153+
run: touch my-prefix-testpipeline/ro-crate-metadata.json
154+
working-directory: create-test-lint-wf
155+
150156
# Run nf-core linting
151157
- name: nf-core pipelines lint
152158
run: nf-core --log-file log.txt --hide-progress pipelines lint --dir my-prefix-testpipeline --fail-warned

.github/workflows/create-test-wf.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@ concurrency:
2727
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2828
cancel-in-progress: true
2929

30-
env:
31-
NXF_ANSI_LOG: false
32-
3330
jobs:
3431
RunTestWorkflow:
3532
# use the runner given by the input if it is dispatched manually, run on github if it is a rerun or on self-hosted by default
3633
runs-on: ${{ github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' }}
3734
env:
3835
NXF_ANSI_LOG: false
36+
3937
strategy:
4038
matrix:
4139
NXF_VER:

.github/workflows/pytest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
133133
- name: Test with pytest
134134
run: |
135-
python3 -m pytest tests/${{matrix.test}} --color=yes --cov --durations=0 && exit_code=0|| exit_code=$?
135+
python3 -m pytest tests/${{matrix.test}} --color=yes --cov --cov-config=.coveragerc --durations=0 && exit_code=0|| exit_code=$?
136136
# don't fail if no tests were collected, e.g. for test_licence.py
137137
if [ "${exit_code}" -eq 5 ]; then
138138
echo "No tests were collected"

.gitpod.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: nfcore/gitpod:dev
1+
image: nfcore/gitpod:latest
22
tasks:
33
- name: install current state of nf-core/tools and setup pre-commit
44
command: |
@@ -9,11 +9,4 @@ tasks:
99
1010
vscode:
1111
extensions:
12-
- esbenp.prettier-vscode # Markdown/CommonMark linting and style checking for Visual Studio Code
13-
- EditorConfig.EditorConfig # override user/workspace settings with settings found in .editorconfig files
14-
- Gruntfuggly.todo-tree # Display TODO and FIXME in a tree view in the activity bar
15-
- mechatroner.rainbow-csv # Highlight columns in csv files in different colors
16-
- nextflow.nextflow # Nextflow syntax highlighting
17-
- oderwat.indent-rainbow # Highlight indentation level
18-
- streetsidesoftware.code-spell-checker # Spelling checker for source code
19-
- charliermarsh.ruff # Code linter Ruff
12+
- nf-core.nf-core-extensionpack # https://github.com/nf-core/vscode-extensionpack

.pre-commit-config.yaml

+1-1
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.7.4
3+
rev: v0.8.2
44
hooks:
55
- id: ruff # linter
66
args: [--fix, --exit-non-zero-on-fix] # sort imports and fix

.vscode/settings.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"python.testing.pytestEnabled": true,
3+
"python.testing.unittestEnabled": false,
4+
"python.testing.nosetestsEnabled": false,
5+
"python.testing.pytestArgs": ["tests", "-v", "--tb=short"],
6+
"python.testing.autoTestDiscoverOnSaveEnabled": true,
7+
"python.terminal.activateEnvInCurrentTerminal": true,
8+
"python.terminal.shellIntegration.enabled": true
9+
}

CHANGELOG.md

+40-12
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,77 @@
11
# nf-core/tools: Changelog
22

3-
## v3.0.3dev
3+
## [v3.1.0 - Brass Boxfish](https://github.com/nf-core/tools/releases/tag/3.1.0) - [2024-12-09]
4+
5+
**Highlights**
6+
7+
- We added the new `contributors` field to the pipeline template `manifest`.
8+
- The `nf-core pipelines download` command supports ORAS container URIs.
9+
- New command `nf-core subworkflows patch`.
410

511
### Template
612

713
- Keep pipeline name in version.yml file ([#3223](https://github.com/nf-core/tools/pull/3223))
814
- Fix Manifest DOI text ([#3224](https://github.com/nf-core/tools/pull/3224))
915
- Do not assume pipeline name is url ([#3225](https://github.com/nf-core/tools/pull/3225))
10-
- fix workflow_dispatch trigger and parse more review comments in awsfulltest ([#3235](https://github.com/nf-core/tools/pull/3235))
16+
- fix `workflow_dispatch` trigger and parse more review comments in awsfulltest ([#3235](https://github.com/nf-core/tools/pull/3235))
1117
- Add resource limits to Gitpod profile([#3255](https://github.com/nf-core/tools/pull/3255))
1218
- Fix a typo ([#3268](https://github.com/nf-core/tools/pull/3268))
19+
- Remove `def` from `nextflow.config` and add `trace_report_suffix` param ([#3296](https://github.com/nf-core/tools/pull/3296))
20+
- Move `includeConfig 'conf/modules.config'` next to `includeConfig 'conf/base.config'` to not overwrite tests profiles configurations ([#3301](https://github.com/nf-core/tools/pull/3301))
21+
- Use `params.monochrome_logs` in the template and update nf-core components ([#3310](https://github.com/nf-core/tools/pull/3310))
22+
- Fix some typos and improve writing in `usage.md` and `CONTRIBUTING.md` ([#3302](https://github.com/nf-core/tools/pull/3302))
23+
- Add `manifest.contributors` to `nextflow.config` ([#3311](https://github.com/nf-core/tools/pull/3311))
24+
- Update template components ([#3328](https://github.com/nf-core/tools/pull/3328))
25+
- Template: Remove mention of GRCh37 if igenomes is skipped ([#3330](https://github.com/nf-core/tools/pull/3330))
1326

1427
### Download
1528

16-
- First steps towards fixing [#3179](https://github.com/nf-core/tools/issues/3179): Modify `prioritize_direct_download()` to retain Seqera Singularity https:// Container URIs and hardcode Seqera Containers into `gather_registries()` ([#3244](https://github.com/nf-core/tools/pull/3244)).
29+
- First steps towards fixing [#3179](https://github.com/nf-core/tools/issues/3179): Modify `prioritize_direct_download()` to retain Seqera Singularity `https://` Container URIs and hardcode Seqera Containers into `gather_registries()` ([#3244](https://github.com/nf-core/tools/pull/3244)).
30+
- Further steps towards fixing [#3179](https://github.com/nf-core/tools/issues/3179): Enable limited support for `oras://` container paths (_only absolute URIs, no flexible registries like with Docker_) and prevent unnecessary image downloads for Seqera Container modules with `reconcile_seqera_container_uris()` ([#3293](https://github.com/nf-core/tools/pull/3293)).
31+
- Update dawidd6/action-download-artifact action to v7 ([#3306](https://github.com/nf-core/tools/pull/3306))
1732

1833
### Linting
1934

20-
- General: Run pre-commit when testing linting the template pipeline ([#3280](https://github.com/nf-core/tools/pull/3280))
35+
- allow mixed `str` and `dict` entries in lint config ([#3228](https://github.com/nf-core/tools/pull/3228))
36+
- fix `meta_yml` linting test failing due to `module.process_name` always being `""` ([#3317](https://github.com/nf-core/tools/pull/3317))
37+
- fix module section regex matching wrong things ([#3321](https://github.com/nf-core/tools/pull/3321))
2138

2239
### Modules
2340

2441
- add a panel around diff previews when updating ([#3246](https://github.com/nf-core/tools/pull/3246))
2542

2643
### Subworkflows
2744

45+
- Add `nf-core subworkflows patch` command ([#2861](https://github.com/nf-core/tools/pull/2861))
46+
- Improve subworkflow nf-test migration warning ([#3298](https://github.com/nf-core/tools/pull/3298))
47+
2848
### General
2949

30-
- Include .nf-core.yml in `nf-core pipelines bump-version` ([#3220](https://github.com/nf-core/tools/pull/3220))
50+
- Include `.nf-core.yml` in `nf-core pipelines bump-version` ([#3220](https://github.com/nf-core/tools/pull/3220))
3151
- create: add shortcut to toggle all switches ([#3226](https://github.com/nf-core/tools/pull/3226))
3252
- Remove unrelated values when saving `.nf-core` file ([#3227](https://github.com/nf-core/tools/pull/3227))
33-
- chore(deps): update pre-commit hook pre-commit/mirrors-mypy to v1.12.0 ([#3230](https://github.com/nf-core/tools/pull/3230))
34-
- chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.7.0 ([#3229](https://github.com/nf-core/tools/pull/3229))
35-
- Update python:3.12-slim Docker digest to 032c526 ([#3232](https://github.com/nf-core/tools/pull/3232))
3653
- use correct `--profile` options for `nf-core subworkflows test` ([#3233](https://github.com/nf-core/tools/pull/3233))
3754
- Update GitHub Actions ([#3237](https://github.com/nf-core/tools/pull/3237))
3855
- add `--dir/-d` option to schema commands ([#3247](https://github.com/nf-core/tools/pull/3247))
39-
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.7.1 ([#3250](https://github.com/nf-core/tools/pull/3250))
56+
- fix headers in api docs ([#3323](https://github.com/nf-core/tools/pull/3323))
4057
- handle new schema structure in `nf-core pipelines create-params-file` ([#3276](https://github.com/nf-core/tools/pull/3276))
4158
- Update Gitpod image to use Miniforge instead of Miniconda([#3274](https://github.com/nf-core/tools/pull/3274))
42-
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.7.3 ([#3275](https://github.com/nf-core/tools/pull/3275))
4359
- Add hint to solve git errors with a synced repo ([#3279](https://github.com/nf-core/tools/pull/3279))
44-
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.7.4 ([#3282](https://github.com/nf-core/tools/pull/3282))
60+
- Run pre-commit when testing linting the template pipeline ([#3280](https://github.com/nf-core/tools/pull/3280))
61+
- Make CLI prompt less nf-core specific ([#3326](https://github.com/nf-core/tools/pull/3326))
62+
- Update gitpod vscode extensions to use nf-core extension pack ([#3327](https://github.com/nf-core/tools/pull/3327))
63+
- Remove toList() channel operation from inside onComplete block ([#3304](https://github.com/nf-core/tools/pull/3304))
64+
- build: Setup VS Code tests ([#3292](https://github.com/nf-core/tools/pull/3292))
65+
- Don't break gitpod.yml with template string ([#3332](https://github.com/nf-core/tools/pull/3332))
66+
- rocrate: remove duplicated entries for name and version ([#3333](https://github.com/nf-core/tools/pull/3333))
67+
- rocrate: Update crate with version bump and handle new contributor field ([#3334](https://github.com/nf-core/tools/pull/3334))
68+
69+
### Version updates
70+
71+
- chore(deps): update pre-commit hook pre-commit/mirrors-mypy to v1.12.0 ([#3230](https://github.com/nf-core/tools/pull/3230))
4572
- Update codecov/codecov-action action to v5 ([#3283](https://github.com/nf-core/tools/pull/3283))
46-
- Update python:3.12-slim Docker digest to 2a6386a ([#3284](https://github.com/nf-core/tools/pull/3284))
73+
- Update gitpod/workspace-base Docker digest to 12853f7 ([#3309](https://github.com/nf-core/tools/pull/3309))
74+
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.8.2 ([#3325](https://github.com/nf-core/tools/pull/3325))
4775

4876
## [v3.0.2 - Titanium Tapir Patch](https://github.com/nf-core/tools/releases/tag/3.0.2) - [2024-10-11]
4977

Dockerfile

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

docs/api/_src/api/pipelines/bump_version.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.bump_version
1+
# nf_core.pipelines.bump_version
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.bump_version

docs/api/_src/api/pipelines/create.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.create
1+
# nf_core.pipelines.create
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.create

docs/api/_src/api/pipelines/download.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.download
1+
# nf_core.pipelines.download
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.download

docs/api/_src/api/pipelines/launch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.launch
1+
# nf_core.pipelines.launch
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.launch

docs/api/_src/api/pipelines/lint.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.lint
1+
# nf_core.pipelines.lint
22

33
:::{seealso}
44
See the [Lint Tests](/docs/nf-core-tools/api_reference/dev/pipeline_lint_tests) docs for information about specific linting functions.

docs/api/_src/api/pipelines/list.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.list
1+
# nf_core.pipelines.list
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.list

docs/api/_src/api/pipelines/params-file.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.params_file
1+
# nf_core.pipelines.params_file
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.params_file

docs/api/_src/api/pipelines/schema.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.schema
1+
# nf_core.pipelines.schema
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.schema

docs/api/_src/api/pipelines/sync.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.sync
1+
# nf_core.pipelines.sync
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.sync

docs/api/_src/api/pipelines/utils.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf_core.utils
1+
# nf_core.pipelines.utils
22

33
```{eval-rst}
44
.. automodule:: nf_core.pipelines.utils

0 commit comments

Comments
 (0)