Skip to content

agents: document runtime version checks and multi-version pytest_test bzlmod rules - #4108

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:agents_update_rules
Aug 23, 2026
Merged

agents: document runtime version checks and multi-version pytest_test bzlmod rules#4108
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:agents_update_rules

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

WORKSPACE mode resolves pip dependencies for only the host Python version, causing multi-version pytest targets to fail when executed against non-host interpreters. Additionally, relying on static type ignore comments in version-dependent code obscures actual runtime compatibility requirements across supported Python releases.

To address this, agent guidelines are updated to require explicit runtime Python version checks instead of static type ignores, and to restrict multi-version pytest_test targets to Bzlmod mode using SUPPORTS_BZLMOD. The allowed PR commit prefixes are also updated to include agents: for changes to agent rules and prompts.

… bzlmod rules

WORKSPACE mode resolves pip dependencies for only the host Python version, causing multi-version pytest targets to fail when executed against non-host interpreters. Additionally, relying on static type ignore comments in version-dependent code obscures actual runtime compatibility requirements across supported Python releases.

To address this, agent guidelines are updated to require explicit runtime Python version checks instead of static type ignores, and to restrict multi-version pytest_test targets to Bzlmod mode using SUPPORTS_BZLMOD. The allowed PR commit prefixes are also updated to include agents: for changes to agent rules and prompts.
@rickeylev
rickeylev marked this pull request as ready for review August 23, 2026 22:47
@rickeylev
rickeylev requested a review from aignas as a code owner August 23, 2026 22:47
@rickeylev
rickeylev merged commit 7e6afb2 into bazel-contrib:main Aug 23, 2026
3 of 5 checks passed
@rickeylev
rickeylev deleted the agents_update_rules branch August 23, 2026 22:52
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.

1 participant