diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 645c134eeb68..d72a7143de7c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,12 +30,14 @@ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # renovate: datasource=github-releases depName=nextflow/nextflow versioning=semver NXF_VER: "25.10.2" + NXF_SYNTAX_PARSER: "v2" jobs: pre-commit: runs-on: ${{ github.event.inputs.runners || github.run_number > 1 && 'ubuntu-latest' || 'self-hosted' }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + - uses: nf-core/setup-nextflow@v2 - name: Run prek uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43031e161b03..e7586ac1262e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -60,3 +60,11 @@ repos: hooks: - id: hadolint-docker args: ["--failure-threshold", "error"] + + - repo: https://github.com/seqeralabs/nf-lint-pre-commit + rev: v0.2.0 + hooks: + - id: nextflow-lint + files: '\.nf$|nextflow\.config$' + # TODO add formating at a later stage + # args: ["-format", "-sort-declarations", "-spaces", "4", "-harshil-alignment", "-output", "concise"] diff --git a/modules/nf-core/coverm/genome/tests/nextflow.config b/modules/nf-core/coverm/genome/tests/nextflow.config index 7e6a187ed548..38536c29c3d4 100644 --- a/modules/nf-core/coverm/genome/tests/nextflow.config +++ b/modules/nf-core/coverm/genome/tests/nextflow.config @@ -1,8 +1,6 @@ process { withName: COVERM_GENOME { - ext { - reference_mode = 'dir' // force directory branch - args = '--genome-fasta-extension fasta' - } + ext.reference_mode = 'dir' // force directory branch + ext.args = '--genome-fasta-extension fasta' } }