-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add nf_core_version to .nf-core.yml #2874
Add nf_core_version to .nf-core.yml #2874
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mirpedrol is that conflicting with #2404 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
I think we should add a pipeline linting test to make sure the .nf-core.yml
contains the version :)
@mirpedrol is that conflicting with #2404 ?
Should be fine! It is only modifying a template file, not the create.py
code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applied some last polish to it, now it's good to go.
nf_core/lint/nfcore_yml.py
Outdated
except FileNotFoundError: | ||
with open(os.path.join(self.wf_path, ".nf-core.yaml")) as fh: | ||
content = fh.read() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this file name is ever written like that, it should be created by the tools, so no need for this extra check 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was because I read this somewhere.
Line 1011 in 1148c4e
CONFIG_PATHS = [".nf-core.yml", ".nf-core.yaml"] |
Line 685 in 1148c4e
- Don't allow a `.nf-core.yaml` file, should be `.yml` ([#1515](https://github.com/nf-core/tools/pull/1515)). |
So i thought to keep it in there as some pipeline still might have the deprecated yaml.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, good point. we leave it in then. 🙂 it seems to be just cutandrun for now: https://github.com/search?q=path%3A.nf-core.yaml&type=code
…l-file' of github.com:nf-core/tools into 2741-add-the-template-version-to-the-pipeline-nf-coreyml-file
the |
#2741
PR checklist
CHANGELOG.md
is updateddocs
is updated