Skip to content

feat(gazelle): Add include_pytest_conftest annotation #3080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dougthor42
Copy link
Collaborator

@dougthor42 dougthor42 commented Jul 11, 2025

Fixes #3076.

Add a new gazelle annotation include_pytest_conftest. When unset
or true, the gazelle behavior is unchanged. When false, gazelle will
not inject the :conftest dependency to py_test targets.

One of the refactorings that is done to support this is to pass around
an annotations struct in target.targetBuilder. This will also open
up support for other annotations in the future.

@dougthor42 dougthor42 added the gazelle Gazelle plugin related issues label Jul 11, 2025
@dougthor42 dougthor42 marked this pull request as ready for review July 11, 2025 23:51
@dougthor42 dougthor42 enabled auto-merge July 14, 2025 23:59
@dougthor42 dougthor42 added this pull request to the merge queue Jul 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jul 15, 2025
@aignas aignas enabled auto-merge July 15, 2025 01:16
@aignas aignas added this pull request to the merge queue Jul 15, 2025
Merged via the queue into bazel-contrib:main with commit a97b98c Jul 15, 2025
3 checks passed
@dougthor42 dougthor42 deleted the u/dthor/gazelle-conftest-annotation-gh3076 branch July 15, 2025 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gazelle Gazelle plugin related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Annotation: include/ignore conftest
3 participants