-
Notifications
You must be signed in to change notification settings - Fork 7
improve skip options #74
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
Conversation
Co-authored-by: ypriverol <52113+ypriverol@users.noreply.github.com>
Co-authored-by: ypriverol <52113+ypriverol@users.noreply.github.com>
Convert skip_if_downloaded_already to a boolean flag
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughNormalized CLI option names to kebab-case and replaced the previous skip flag with a flag-style Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
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.
Pull request overview
This PR converts the skip_if_downloaded_already option from a string-based parameter to a proper boolean flag across four CLI download commands, improving the Click interface consistency and user experience.
Key Changes:
- Converted
skip_if_downloaded_alreadyto a boolean flag with--skip-if-downloaded-already/--no-skip-if-downloaded-alreadysyntax - Standardized help text across all four affected commands
- Updated README documentation to reflect new flag usage
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| pridepy/pridepy.py | Converts skip option to boolean flag format in 4 CLI commands (download-all-public-raw-files, download-all-public-category-files, download-file-by-name, download-px-raw-files) |
| README.md | Updates documentation to describe the new flag syntax and behavior |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pridepy/pridepy.py
Outdated
| "--skip-if-downloaded-already/--no-skip-if-downloaded-already", | ||
| is_flag=True, | ||
| default=True, | ||
| help="Boolean value to skip the download if the file has already been downloaded.", | ||
| help="Skip the download if the file has already been downloaded. Default is to skip.", |
Copilot
AI
Dec 12, 2025
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.
The new flag uses hyphens (--skip-if-downloaded-already), but other flags in the codebase use underscores (--output_folder, --file_name, --aspera_maximum_bandwidth, --checksum_check). This creates inconsistency in the CLI interface. Consider either keeping underscores to match existing conventions or updating all flags to use hyphens for consistency.
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.
@copilot lets move everything to hyphens for consistency.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@ypriverol I've opened a new pull request, #75, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: ypriverol <52113+ypriverol@users.noreply.github.com>
Standardize CLI flags to use hyphens instead of underscores
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pridepy/pridepy.py
Outdated
| "--skip-if-downloaded-already/--no-skip-if-downloaded-already", | ||
| is_flag=True, |
Copilot
AI
Dec 12, 2025
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.
When using the dual flag format (--flag/--no-flag) in Click, the is_flag=True parameter is redundant and unnecessary. The dual flag format automatically creates a boolean option. Consider removing is_flag=True to follow Click's best practices.
|
@ypriverol I've opened a new pull request, #76, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: ypriverol <52113+ypriverol@users.noreply.github.com>
Co-authored-by: ypriverol <52113+ypriverol@users.noreply.github.com>
Convert --skip-if-downloaded-already to single flag format
PR Type
Enhancement
Description
Convert
skip_if_downloaded_alreadyoption to Click boolean flagStandardize flag naming with hyphens across all commands
Improve help text clarity and consistency
Update documentation with new flag usage examples
Diagram Walkthrough
File Walkthrough
pridepy.py
Convert skip option to boolean flag formatpridepy/pridepy.py
skip_if_downloaded_alreadyfrom string option to booleanflag in 4 CLI commands
-skipto--skip-if-downloaded-already/--no-skip-if-downloaded-alreadyalready been downloaded. Default is to skip."
main(),download_all_public_raw_files(),download_all_public_category_files(), anddownload_px_raw_files()commands
README.md
Update documentation for new skip flag syntaxREADME.md
--skip-if-downloaded-alreadyand--no-skip-if-downloaded-alreadyoptionsSummary by CodeRabbit
Documentation
Updates
✏️ Tip: You can customize this high-level summary in your review settings.