bazel-contrib / bazel-contrib/rules_python
(gazelle) Delete py_library and py_test targets with missing srcs
Open
gazelle
- Dominant language
- Starlark
- Stars
- 688
- Forks
- 721
- Avg merge
- 15h 7m
- Merged PRs (30d)
- 76
Description
Followup to https://github.com/bazel-contrib/rules_python/pull/3046#issuecomment-3094797158.
We've merged #3046 which will delete `py_binary` targets with missing srcs - let's now expand that to include `py_library` and `py_test` targets.
@yushan26 did you want to take this on?
Contributor guide
Research direction
Start by reviewing the implementation and tests from pull request #3046, which added deletion for py_binary targets with missing srcs. Extend the same behavior to py_library and py_test targets, then run the related Gazelle tests and confirm those targets are deleted when their srcs are missing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100