-
Notifications
You must be signed in to change notification settings - Fork 942
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
Batchrunner: Remove unnecessary dict
transformation, .keys()
in len()
#1460
Conversation
dict
transformation, keys()
in len()
dict
transformation, .keys()
in len()
Codecov ReportBase: 91.15% // Head: 91.34% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1460 +/- ##
==========================================
+ Coverage 91.15% 91.34% +0.18%
==========================================
Files 15 15
Lines 1289 1305 +16
Branches 218 223 +5
==========================================
+ Hits 1175 1192 +17
+ Misses 81 80 -1
Partials 33 33
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@rht Thanks for the review, fixed the dict call, CI now passes! If you want me to clean up this PR to a single commit please let me know, but I'm good with you squashing during merge. |
The squash and merge GH button is disabled, so I can't squash it. Using this button will create a merge commit in main, so it is intentionally disabled. |
It doesn’t though, I use it on most of my repos. I describe the process we use on one of my professors repos here, to keep an atomic commit history without any merge commits. Also the GitHub docs provide some insight. |
- Removes one unnecessary dict transformation - Removes three unnecessary calls of .keys() when getting the dict lenght
But for now, I squashed them to a single commit :) |
9000e8c
to
6e60a83
Compare
I wanted to test on github.com/rht/mesa, but Accidentally made a PR to github.com/projectmesa/mesa that got merged. But anyway, I confirm that it works, and it has been enabled now. |
Thanks for merging, and for testing and validating! One thing to keep in mind is that sometimes you have to clean up the commit message a bit, but aside from that, it’s a really great tool in the toolbox. |
After inspiration from #1456, I checked the rest of the codebase on such cases, and found two in the Batchrunner
dict
transformation.keys()
when getting the dict length