Skip to content

Commit 9f4036c

Browse files
authored
Merge branch 'dev' into remove-channel-operations-from-oncomplete
2 parents f22d7d9 + b14b504 commit 9f4036c

31 files changed

+99
-85
lines changed

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

Lines changed: 0 additions & 1 deletion
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:

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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 1 addition & 0 deletions
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) }}

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

Lines changed: 1 addition & 3 deletions
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:

.gitpod.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

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

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
### Linting
2626

2727
- allow mixed `str` and `dict` entries in lint config ([#3228](https://github.com/nf-core/tools/pull/3228))
28+
- fix meta_yml linting test failing due to module.process_name always being "" ([#3317](https://github.com/nf-core/tools/pull/3317))
29+
- fix module section regex matching wrong things ([#3321](https://github.com/nf-core/tools/pull/3321))
2830

2931
### Modules
3032

@@ -33,6 +35,7 @@
3335
### Subworkflows
3436

3537
- Add `nf-core subworkflows patch` command ([#2861](https://github.com/nf-core/tools/pull/2861))
38+
- Improve subworkflow nf-test migration warning ([#3298](https://github.com/nf-core/tools/pull/3298))
3639

3740
### General
3841

@@ -56,6 +59,9 @@
5659
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.8.0 ([#3299](https://github.com/nf-core/tools/pull/3299))
5760
- Update gitpod/workspace-base Docker digest to 12853f7 ([#3309](https://github.com/nf-core/tools/pull/3309))
5861
- Run pre-commit when testing linting the template pipeline ([#3280](https://github.com/nf-core/tools/pull/3280))
62+
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.8.2 ([#3325](https://github.com/nf-core/tools/pull/3325))
63+
- Make CLI prompt less nf-core specific ([#3326](https://github.com/nf-core/tools/pull/3326))
64+
- Update gitpod vscode extensions to use nf-core extension pack ([#3327](https://github.com/nf-core/tools/pull/3327))
5965
- Remove toList() channel operation from inside onComplete block ([#3304](https://github.com/nf-core/tools/pull/3304))
6066

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

Dockerfile

Lines changed: 1 addition & 1 deletion
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

nf_core/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def command_pipelines_create(ctx, name, description, author, version, force, out
288288
@click.option(
289289
"--release",
290290
is_flag=True,
291-
default=os.path.basename(os.path.dirname(os.environ.get("GITHUB_REF", "").strip(" '\""))) == "master"
291+
default=Path(os.environ.get("GITHUB_REF", "").strip(" '\"")).parent.name in ["master", "main"]
292292
and os.environ.get("GITHUB_REPOSITORY", "").startswith("nf-core/")
293293
and not os.environ.get("GITHUB_REPOSITORY", "") == "nf-core/tools",
294294
help="Execute additional checks for release-ready workflows.",
@@ -2240,7 +2240,7 @@ def command_download(
22402240
@click.option(
22412241
"--release",
22422242
is_flag=True,
2243-
default=os.path.basename(os.path.dirname(os.environ.get("GITHUB_REF", "").strip(" '\""))) == "master"
2243+
default=Path(os.environ.get("GITHUB_REF", "").strip(" '\"")).parent.name in ["master", "main"]
22442244
and os.environ.get("GITHUB_REPOSITORY", "").startswith("nf-core/")
22452245
and not os.environ.get("GITHUB_REPOSITORY", "") == "nf-core/tools",
22462246
help="Execute additional checks for release-ready workflows.",

nf_core/components/components_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def get_repo_info(directory: Path, use_prompt: Optional[bool] = True) -> Tuple[P
4343
if not repo_type and use_prompt:
4444
log.warning("'repository_type' not defined in %s", config_fn.name)
4545
repo_type = questionary.select(
46-
"Is this repository an nf-core pipeline or a fork of nf-core/modules?",
46+
"Is this repository a pipeline or a modules repository?",
4747
choices=[
4848
{"name": "Pipeline", "value": "pipeline"},
49-
{"name": "nf-core/modules", "value": "modules"},
49+
{"name": "Modules repository", "value": "modules"},
5050
],
5151
style=nf_core.utils.nfcore_question_style,
5252
).unsafe_ask()

0 commit comments

Comments
 (0)