feat(py_test): Allows passing tags to generated py_pytest_main. #580
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Passing
tagstopy_pytest_mainallows them to be excluded from mypy type checking.Current implementation of
pytest-generated code does not adhere to strict type safety and gives the following mypy errors:The current workaround to exclude these tests via tags however these are not currently passed to generated
py_pytest_main.Changes are visible to end-users: yes
Enables
py_testtags passing to generatedpy_pytest_mainTest plan
Build/Unit tests
bazel build //... bazel test //...tools/aspects.bzl:
...<path_to_my_test>/BUILD.bazel:
No mypy errors are raised.