check_version_alignment
Verify that the version in pyproject.toml aligns with a specified tag to prevent release mismatches.
Instructions
Check that pyproject.toml [project].version matches an optional expected tag.
No network access. Fail-closed when version cannot be detected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Absolute or relative path to the repository root. | |
| expected_tag | No | Optional target tag, e.g. "v0.1.0". Leading "v" is stripped before comparison with the file-level version string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||