Bump version to 0.6.0 and add version check command#81
Merged
melonattacker merged 3 commits intomainfrom Apr 21, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the versioning system of the Prompt Hardener project from hardcoded version strings to a dynamic, centralized approach. It introduces a new
__version__attribute in the package, ensures all components and reports reference this version, and adds a user-friendly CLI version command. The documentation, test fixtures, and tests are also updated to reflect the new versioning scheme.Versioning and Metadata Improvements
__version__ = "0.6.0"andPRODUCT_NAMEinsrc/prompt_hardener/__init__.py, along with aget_version_display()helper. All internal references to the tool version now import this value instead of using hardcoded strings. [1] [2] [3] [4] [5] [6]pyproject.tomlto use dynamic versioning, pulling the version from the package attribute instead of a static value. [1] [2]CLI Enhancements
versionsubcommand and-v/--versionflags to the CLI, displaying the tool version using the new dynamic system. Updated the argument parsing to support these features and improved test coverage for them. [1] [2] [3] [4] [5] [6]Documentation and Example Updates
README.mdanddocs/tutorials.mdto reference version0.6.0instead of0.5.0. [1] [2] [3] [4]Test and Fixture Synchronization
These changes make the versioning process more robust, reduce manual update errors, and improve the user and developer experience.