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

Fix undefined behaviour in update.py #1742

Merged
merged 3 commits into from
Aug 5, 2022

Conversation

ErikDanielsson
Copy link
Contributor

There were some undefined behaviour in update.py in a recently merged pull request as @fabianegli pointed out in #1738 (comment). This fixes the issues mentioned there. I also took the opportunity to remove the DiffEnum class update.py which is not used any more.

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

@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #1742 (1eebfa0) into dev (b5f7365) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##              dev    #1742      +/-   ##
==========================================
- Coverage   68.47%   68.45%   -0.03%     
==========================================
  Files          59       59              
  Lines        7141     7136       -5     
==========================================
- Hits         4890     4885       -5     
  Misses       2251     2251              
Impacted Files Coverage Δ
nf_core/modules/update.py 75.64% <66.66%> (-0.45%) ⬇️
nf_core/utils.py 80.97% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fabianegli
Copy link
Contributor

Thank you for taking DiffEnum out, that was bugging me since I started working on tools 🙄

Co-authored-by: Fabian Egli <fabianegli@users.noreply.github.com>
CHANGELOG.md Outdated Show resolved Hide resolved
@ErikDanielsson ErikDanielsson merged commit ccad6e6 into nf-core:dev Aug 5, 2022
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.

2 participants