nf-core / nf-core/tools

The template feature "nf-test" is not a valid jinja variable

Open
#3,780 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug template
Dominant language
Python
Stars
322
Forks
255
Avg merge
2d 3h
Merged PRs (30d)
5

Description

The variable to use is nf-test for that currently, however jinja doesn't like when there are - in its variables.
Meaning the nf-test var should be renamed to nf_test but this is not the scope of this PR.

Originally posted by @Joon-Klaps in https://github.com/nf-core/tools/issues/3776#issuecomment-3337731621

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the template feature for uses of the nf-test variable and inspect how those values are passed to Jinja. Confirm the variable is exposed under a Jinja-compatible name such as nf_test, then render the affected template or run the existing template tests to verify it works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.