Skip to content

Remove old references to CUSTOMDUMPSOFTWAREVERSIONS#2897

Merged
mashehu merged 13 commits into
devfrom
remove-old-customdumpsoftwareversions
Apr 3, 2024
Merged

Remove old references to CUSTOMDUMPSOFTWAREVERSIONS#2897
mashehu merged 13 commits into
devfrom
remove-old-customdumpsoftwareversions

Conversation

@jfy133

@jfy133 jfy133 commented Mar 26, 2024

Copy link
Copy Markdown
Member

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

@ewels ewels left a comment

Copy link
Copy Markdown
Member

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

jfy133 commented Mar 26, 2024

Copy link
Copy Markdown
Member Author

@mirpedrol @mashehu help!

Comment thread CHANGELOG.md Outdated
@mashehu

mashehu commented Mar 26, 2024

Copy link
Copy Markdown
Contributor

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

@mashehu

mashehu commented Mar 26, 2024

Copy link
Copy Markdown
Contributor

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

@ewels

ewels commented Mar 26, 2024

Copy link
Copy Markdown
Member

image

@codecov

codecov Bot commented Mar 26, 2024

Copy link
Copy Markdown

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.

Comment thread nf_core/lint/configs.py Outdated

# 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
Copy Markdown
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
Copy Markdown
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

Comment thread nf_core/lint/configs.py Outdated
Comment thread nf_core/lint_utils.py Outdated
Comment thread nf_core/lint/configs.py Outdated
Comment thread nf_core/lint/configs.py Outdated
Comment thread nf_core/lint/configs.py Outdated
Comment thread nf_core/lint/configs.py Outdated
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
Copy Markdown
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
Copy Markdown
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

Comment thread nf_core/lint/configs.py Outdated

@mirpedrol mirpedrol left a comment

Copy link
Copy Markdown
Member

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
@mashehu mashehu deleted the remove-old-customdumpsoftwareversions branch April 3, 2024 08:39
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