-
Notifications
You must be signed in to change notification settings - Fork 27
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
Cleanup MrM settings #501
Cleanup MrM settings #501
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #501 +/- ##
========================================
Coverage 89.74% 89.74%
========================================
Files 104 104
Lines 7623 7623
========================================
Hits 6841 6841
Misses 782 782
Continue to review 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.
Good idea. And thanks for sorting attributes and methods in Settings
!
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.
👍 thank you!
User description
Description of the Change: Some cleanup of settings
PR Type
enhancement, tests
Description
MAX_BATCH_SIZE
setting to theSettings
class inmrmustard/utils/settings.py
with a default value of 1000.CACHE_DIR
with appropriate getter and setter methods.__call__
,__enter__
,__exit__
) for better usability.tests/test_utils/test_settings.py
to ensure theMAX_BATCH_SIZE
default value is correctly set.Changes walkthrough 📝
settings.py
Add and document MAX_BATCH_SIZE setting in Mr Mustard
mrmustard/utils/settings.py
MAX_BATCH_SIZE
setting with a default value of 1000.CACHE_DIR
with getter and setter methods.__call__
,__enter__
, and__exit__
methods for contextmanagement.
test_settings.py
Add test for MAX_BATCH_SIZE default value
tests/test_utils/test_settings.py
MAX_BATCH_SIZE
.