Skip to content

test: guard against __version__ vs pyproject.toml drift - #90

Merged
aviadshiber merged 1 commit into
mainfrom
test/version-drift-guard
May 15, 2026
Merged

test: guard against __version__ vs pyproject.toml drift#90
aviadshiber merged 1 commit into
mainfrom
test/version-drift-guard

Conversation

@aviadshiber

Copy link
Copy Markdown
Owner

Summary

Adds a regression test that asserts java_functional_lsp.__version__ (from src/java_functional_lsp/__init__.py) equals the version line in pyproject.toml.

Why

PR #88 (v0.11.0) bumped pyproject.toml to 0.11.0 but left __init__.py at 0.10.0. The published package's --version output disagreed with its installed metadata. v0.11.1 hotfixed it. This test prevents the same drift from slipping through again — the next single-side bump fails CI before it ships.

Test plan

  • uv run pytest tests/test_version.py -v --no-cov → 1 passed
  • CI green

🤖 Generated with Claude Code

PR #88 (v0.11.0) bumped pyproject.toml but left
src/java_functional_lsp/__init__.py at 0.10.0, shipping a package
whose --version disagreed with its installed metadata. v0.11.1
synced them.

This test reads both values and asserts they match, so the next
bump that touches only one side fails CI before it ships.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@aviadshiber
aviadshiber merged commit dd3636a into main May 15, 2026
14 checks passed
@aviadshiber
aviadshiber deleted the test/version-drift-guard branch May 15, 2026 16:20
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