Skip to content

Check version consistency from the source tree - #926

Merged
kuhe merged 1 commit into
developfrom
kuhe/fix/version-consistency
Nov 12, 2026
Merged

kuhe merged 1 commit into
developfrom
kuhe/fix/version-consistency

Conversation

@kuhe

@kuhe kuhe commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Modifies the version consistency check to read versions from source code files under version control rather than what's available in the local env, which lags behind without constant updates.

@kuhe
kuhe marked this pull request as ready for review November 11, 2026 21:29
@kuhe
kuhe requested a review from a team as a code owner November 11, 2026 21:29
Comment on lines +124 to +125
and (value.func.id if isinstance(value.func, ast.Name) else value.func.attr)
== "version"

@lukasdchang lukasdchang Nov 11, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this check if version is under importlib.metadata.version. It currently accepts any function or method named version including ones imported from an unrelated module.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging without this change since it is a remote edge case

@kuhe
kuhe merged commit 69201c8 into develop Nov 12, 2026
26 checks passed
@kuhe
kuhe deleted the kuhe/fix/version-consistency branch November 12, 2026 15:41
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