-
Notifications
You must be signed in to change notification settings - Fork 10
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
Polish CLI #99
Polish CLI #99
Conversation
0.0.3 -> 0.0.4 version updated
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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 (
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
@mobiusklein This is a good point:
Because we have multiple people generating with AI but also with their Editor, we have multiple styles. I have tried to move to Numpy everything but also got stock in the middle. Do you know any tool that allows you to move all docstring to Numpy? Something like black? |
User description
This change set tries to polish the CLI, being more intrusive than the last batch of changes because of the increase in use of the
logging
module.I've replaced calls to
logging.info
andprint
with dedicated module loggers. Additionally, I moved the logging initialization into the CLI. If the code is used as a library, it will be the responsibility of the calling code to initialize logging, as is convention.I spent some time normalizing docstrings to use the Numpydoc style, but did not get through all of them at this point. I tried to make the failure modes of
run_batch_correction
clearer. Are you using an AI tool to generate some of your docstrings?Separately, I removed the parameter documentation from the
click.command
functions because their docstrings are injected as part of the CLI help text, and the parameters will be described by theirhelp
text.Finally, I made the
anndata
import late-binding to not delay starting up the program for the optional dependency.PR Type
Enhancement, Documentation, Bug fix
Description
Enhanced logging by replacing
print
andlogging.info
with dedicated loggers.NullHandler
for modules.Updated docstrings across multiple files to adhere to Numpydoc style.
Raises
andExamples
.Refactored error handling for better clarity and robustness.
SystemExit
andprint
with exceptions likeValueError
and custom exceptions.Made
anndata
imports conditional to avoid unnecessary dependencies during startup.Changes walkthrough 📝
5 files
Refactored logging and updated docstrings for batch correction
Added logger and conditional `anndata` import
Enhanced logging and standardized docstrings
Improved logging and error handling in peptide normalization
Added CLI logging configuration options
4 files
Simplified docstrings for feature-to-parquet conversion
Simplified docstrings for peptide-to-protein computation
Updated docstrings and improved type annotations
Standardized docstrings and added custom exception