-
-
Notifications
You must be signed in to change notification settings - Fork 134
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 from_config and only keep from_configs #659
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #659 +/- ##
=========================================
Coverage ? 70.05%
=========================================
Files ? 55
Lines ? 6773
Branches ? 0
=========================================
Hits ? 4745
Misses ? 2028
Partials ? 0 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few actual changes, mostly sanity check and also wondering if you used runscores
in any way.
def from_config(config: Namespace): | ||
global __INSTANCE__ | ||
transform_config(config, _backward_compatibility_config_rules_) | ||
__INSTANCE__ = Resources(config) | ||
return __INSTANCE__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actual change, the replacing function is directly below (unchanged).
return from_config( | ||
return from_configs( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change
@eddiebergman I was doing the "round-robin" reviewer assignment, but it seemed like Nick might be on vacation. So to keep things moving I'm assigning you instead. Hope that's alright with you. |
Looks good to me, thanks for highlighting the actual changes. Not familiar with this functionality really, but makes sense from a high-level overview. One recommendation is to have a blanket ruff formatting PR to make future changes easier to review :) |
Thanks for checking! |
Working towards a moving target at #658, I am splitting off individual cleaned up commits for easier reviews.
This PR removes the
from_config
function since it is interchangable with the more flexiblefrom_configs
.I could detect no use for the
runscores
script, and it didn't even work, so I took the liberty to also remove that.