-
Notifications
You must be signed in to change notification settings - Fork 3
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: return str placeholder in settings info if default value of setting is a callable #52
Conversation
…ing is a callable
WalkthroughThe pull request modifies the Changes
Possibly related PRs
Tip New featuresWalkthrough comment now includes:
Notes:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- snakemake_interface_common/plugin_registry/plugin.py (1 hunks)
Additional context used
Path-based instructions (1)
snakemake_interface_common/plugin_registry/plugin.py (1)
Pattern
**/*.py
: Do not try to improve formatting.
Do not suggest type annotations for functions that are defined inside of functions or methods.
Do not suggest type annotation of theself
argument of methods.
Do not suggest type annotation of thecls
argument of classmethods.
Do not suggest return type annotation if a function or method does not contain areturn
statement.
Additional comments not posted (1)
snakemake_interface_common/plugin_registry/plugin.py (1)
92-93
: Approved: Handling of callable defaults in settings.The modification to handle callable defaults by returning "" when the
default
attribute is callable is a good enhancement. This change improves the clarity and descriptiveness of the settings information.Run the following script to verify the integration of this change with the rest of the system:
🤖 I have created a release *beep* *boop* --- ## [1.17.4](v1.17.3...v1.17.4) (2024-10-04) ### Bug Fixes * do not check for exactly one plugin in registry tests ([#54](#54)) ([755e64e](755e64e)) * return str placeholder in settings info if default value of setting is a callable ([#52](#52)) ([0f26fe3](0f26fe3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary by CodeRabbit
New Features
Bug Fixes
get_settings_info
method output.