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

Remove old references to CUSTOMDUMPSOFTWAREVERSIONS #2897

Merged
merged 13 commits into from
Apr 3, 2024

Conversation

jfy133
Copy link
Member

@jfy133 jfy133 commented Mar 26, 2024

Removes left over CUSTOMDUMPSOFTWAREVERSIONS references from template that has been since replaced with a dedicated special function

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

ewels
ewels previously requested changes Mar 26, 2024
Copy link
Member

@ewels ewels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add a lint test for this please?

@jfy133
Copy link
Member Author

jfy133 commented Mar 26, 2024

@mirpedrol @mashehu help!

CHANGELOG.md Outdated Show resolved Hide resolved
@mashehu
Copy link
Contributor

mashehu commented Mar 26, 2024

haha, you ran into the same nf-core tools trap as @Joon-Klaps did 🙂
Screenshot 2024-03-26 at 13 15 53

@mashehu
Copy link
Contributor

mashehu commented Mar 26, 2024

but I can have a look after I found a fix for #2890

@ewels
Copy link
Member

ewels commented Mar 26, 2024

image

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

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

Project coverage is 75.11%. Comparing base (5d9cb5a) to head (0f9da5d).
Report is 2 commits behind head on dev.

Files Patch % Lines
nf_core/lint_utils.py 94.44% 1 Missing ⚠️
Additional details and impacted files

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


# Return a failed status if we can't find the file
if not fn.is_file():
return {"failed": [f"`${file_path}` not found"]}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to make this a warning? Some pipelines (like sarek) don't use these config files.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to have them ignore it, imo

nf_core/lint/configs.py Outdated Show resolved Hide resolved
nf_core/lint_utils.py Outdated Show resolved Hide resolved
nf_core/lint/configs.py Outdated Show resolved Hide resolved
nf_core/lint/configs.py Outdated Show resolved Hide resolved
nf_core/lint/configs.py Outdated Show resolved Hide resolved
f"`{file_path}` contains `withName:{section}`, but the corresponding process is not present in any of the following workflow files: `{nf_files}`."
)
else:
passed.append(f"both `{file_path}` and `{[str(f) for f in nf_files]} contain `{section}`.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the list of .nf files will be too long. Maybe a general message is enough

Suggested change
passed.append(f"both `{file_path}` and `{[str(f) for f in nf_files]} contain `{section}`.")
passed.append(f"`{section}` found in `{file_path}` and Nextflow scripts.")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, but I'll add a debuggin log, so it is a bit easier to debug

nf_core/lint/configs.py Outdated Show resolved Hide resolved
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.

LGTM!

@mashehu mashehu dismissed ewels’s stale review April 3, 2024 08:39

lint tests added

@mashehu mashehu merged commit 20c1ea5 into dev Apr 3, 2024
35 checks passed
@mashehu mashehu deleted the remove-old-customdumpsoftwareversions branch April 3, 2024 08:39
This pull request was closed.
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.

6 participants