Skip to content

Minor change to have the version of the tool. #97

Merged
ypriverol merged 2 commits into
masterfrom
dev
May 4, 2026
Merged

Minor change to have the version of the tool. #97
ypriverol merged 2 commits into
masterfrom
dev

Conversation

@ypriverol
Copy link
Copy Markdown
Contributor

@ypriverol ypriverol commented May 4, 2026

Summary by CodeRabbit

  • New Features
    • Added support for displaying the package version via the CLI --version flag.

@qodo-code-review
Copy link
Copy Markdown
Contributor

Review Summary by Qodo

Add --version flag to CLI tool

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Add --version flag to CLI using click decorator
• Enables users to check tool version via command line
Diagram
flowchart LR
  CLI["CLI main function"] -- "add version_option decorator" --> VERSION["--version flag support"]
  VERSION -- "displays package version" --> USER["User can check tool version"]
Loading

Grey Divider

File Changes

1. pridepy/pridepy.py ✨ Enhancement +1/-0

Add version option decorator to CLI

• Added @click.version_option(package_name="pridepy") decorator to main CLI function
• Enables --version flag to display the installed package version

pridepy/pridepy.py


Grey Divider

Qodo Logo

@qodo-code-review
Copy link
Copy Markdown
Contributor

qodo-code-review Bot commented May 4, 2026

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 4, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8739a553-c08a-4262-9331-61365ebf0d87

📥 Commits

Reviewing files that changed from the base of the PR and between cacf553 and dde7b4f.

📒 Files selected for processing (1)
  • pridepy/pridepy.py

📝 Walkthrough

Walkthrough

Added click.version_option(package_name="pridepy") decorator to the main Click command group, enabling the CLI to respond to --version flag with version information sourced from the package manifest.

Changes

CLI Version Support

Layer / File(s) Summary
CLI Decorator
pridepy/pridepy.py
@click.version_option(package_name="pridepy") added to the main command group decorator stack to expose version via Click's standard handler.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

Review effort 1/5

Poem

🐰 A little Click now knows its way,
--version calls, what shall we say?
From pyproject it reads with pride,
Version numbers now worldwide!
One line hops into the CLI today,
Hop hop, hooray! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding version information exposure to the CLI tool via the Click decorator.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

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.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@ypriverol ypriverol merged commit 6c554b5 into master May 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants