Skip to content
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

Merged

Conversation

Joon-Klaps
Copy link
Contributor

@Joon-Klaps Joon-Klaps commented Mar 19, 2024

#2741

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 74.76%. Comparing base (2cb50ca) to head (099c01d).

❗ Current head 099c01d differs from pull request most recent head 1fc8080. Consider uploading reports for the commit 1fc8080 to get more accurate results

Files Patch % Lines
nf_core/lint/nfcore_yml.py 0.00% 5 Missing ⚠️
Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Joon-Klaps Joon-Klaps requested review from mashehu and mirpedrol March 19, 2024 11:06
Copy link
Contributor

@mashehu mashehu left a 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 ?

Copy link
Member

@mirpedrol mirpedrol left a 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

Copy link
Contributor

@mashehu mashehu left a 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.

Comment on lines 34 to 36
except FileNotFoundError:
with open(os.path.join(self.wf_path, ".nf-core.yaml")) as fh:
content = fh.read()
Copy link
Contributor

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 🙂

Copy link
Contributor Author

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.

CONFIG_PATHS = [".nf-core.yml", ".nf-core.yaml"]

- 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.

Copy link
Contributor

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

Joon-Klaps and others added 2 commits March 21, 2024 20:51
…l-file' of github.com:nf-core/tools into 2741-add-the-template-version-to-the-pipeline-nf-coreyml-file
@mashehu
Copy link
Contributor

mashehu commented Mar 21, 2024

the AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'? errors are a known issue #2891, can be ignored for now

@Joon-Klaps Joon-Klaps merged commit 221b683 into dev Mar 26, 2024
34 checks passed
@Joon-Klaps Joon-Klaps deleted the 2741-add-the-template-version-to-the-pipeline-nf-coreyml-file branch March 26, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants